]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10833 some more course theme fixes; merged from MOODLE_18_STABLE
authorskodak <skodak>
Mon, 24 Sep 2007 15:50:34 +0000 (15:50 +0000)
committerskodak <skodak>
Mon, 24 Sep 2007 15:50:34 +0000 (15:50 +0000)
backup/restore.php

index e6cdeda5a37a3a590f5f2201b7fae58bdc97acdc..47f20c94efa421cf2afe0bd55910350d6676c334 100644 (file)
@@ -50,6 +50,7 @@
     }
 
     if (!empty($id)) {
+        require_login($id);
         if (!has_capability('moodle/site:restore', get_context_instance(CONTEXT_COURSE, $id))) {
             if (empty($to)) {
                 error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");