From 9069e60346ae36898701475a056f57828c7daa7f Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 4 Feb 2004 12:43:05 +0000 Subject: [PATCH] Restricted users can't do backups --- backup/backup.php | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.39.5