From b7318874b9b846c3c31392a7bdddb39b73c1ef5b Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 4 Feb 2004 12:44:06 +0000 Subject: [PATCH] Don't allow restricted users to do restores --- backup/restore.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backup/restore.php b/backup/restore.php index a6d9f9942a..70cd2d8be8 100644 --- a/backup/restore.php +++ b/backup/restore.php @@ -76,6 +76,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: $strcourserestore", $site->fullname, -- 2.39.5