From: stronk7 Date: Wed, 7 May 2003 16:09:34 +0000 (+0000) Subject: Only admins can execute me !! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=95f6c01b0360106abdeb585e09ba07ab269a320e;p=moodle.git Only admins can execute me !! --- diff --git a/backup/backup.php b/backup/backup.php index a9cb96bd55..0e4a0374d2 100644 --- a/backup/backup.php +++ b/backup/backup.php @@ -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