]> git.mjollnir.org Git - moodle.git/commitdiff
Only admins can execute me !!
authorstronk7 <stronk7>
Wed, 7 May 2003 16:09:34 +0000 (16:09 +0000)
committerstronk7 <stronk7>
Wed, 7 May 2003 16:09:34 +0000 (16:09 +0000)
backup/backup.php

index a9cb96bd5548cbe329faaa983a85326052a7f0e5..0e4a0374d2e1529465ef04fa822ef1fb34a447e9 100644 (file)
@@ -24,9 +24,9 @@
     //Check login       
     require_login();
 
-    //Check admin
     //Check admin
     if (!isadmin()) {
+        error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
     }
 
     //Check site