Only admins can execute me !!

This commit is contained in:
stronk7 2003-05-07 16:09:34 +00:00
parent e51de1e846
commit 95f6c01b03

View File

@ -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