]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed theme and require_login MDL-10833
authormoodler <moodler>
Mon, 13 Aug 2007 13:40:35 +0000 (13:40 +0000)
committermoodler <moodler>
Mon, 13 Aug 2007 13:40:35 +0000 (13:40 +0000)
course/reset.php

index c405e5af777892daedad1ac842c6f46e558dc9d1..d4ba990d4ed7c5ef16341738e9727ceaa9337572 100755 (executable)
@@ -15,6 +15,8 @@ The feature will also reset the start date of the course if necessary.
         error("Course is misconfigured");
     }
 
+    require_login($course->id);
+
     require_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id));
 
     $strreset = get_string('reset');