]> git.mjollnir.org Git - moodle.git/commitdiff
Don't allow restricted users to do restores
authormoodler <moodler>
Wed, 4 Feb 2004 12:44:06 +0000 (12:44 +0000)
committermoodler <moodler>
Wed, 4 Feb 2004 12:44:06 +0000 (12:44 +0000)
backup/restore.php

index a6d9f9942a75240ab0d2627c0507ab9382000a43..70cd2d8be82976eeca9d5a857eb67d8ef26bf5db 100644 (file)
@@ -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,