mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Only admins can execute me !!
This commit is contained in:
parent
e51de1e846
commit
95f6c01b03
@ -24,9 +24,9 @@
|
|||||||
//Check login
|
//Check login
|
||||||
require_login();
|
require_login();
|
||||||
|
|
||||||
//Check admin
|
|
||||||
//Check admin
|
//Check admin
|
||||||
if (!isadmin()) {
|
if (!isadmin()) {
|
||||||
|
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check site
|
//Check site
|
||||||
|
Loading…
x
Reference in New Issue
Block a user