From: moodler <moodler>
Date: Wed, 4 Feb 2004 12:44:06 +0000 (+0000)
Subject: Don't allow restricted users to do restores
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b7318874b9b846c3c31392a7bdddb39b73c1ef5b;p=moodle.git

Don't allow restricted users to do restores
---

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,