From: moodler Date: Wed, 4 Feb 2004 12:43:05 +0000 (+0000) Subject: Restricted users can't do backups X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9069e60346ae36898701475a056f57828c7daa7f;p=moodle.git Restricted users can't do backups --- diff --git a/backup/backup.php b/backup/backup.php index 514523d679..d16541efda 100644 --- a/backup/backup.php +++ b/backup/backup.php @@ -68,6 +68,8 @@ error("Course ID was incorrect (can't find it)"); } + check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id"); + //Print header if (isadmin()) { print_header("$site->shortname: $strcoursebackup", $site->fullname,