From 665f8762ae4ee19b9cfe2f4049de8af568c7fc10 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 13 Aug 2007 13:40:35 +0000 Subject: [PATCH] Fixed theme and require_login MDL-10833 --- course/reset.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/course/reset.php b/course/reset.php index c405e5af77..d4ba990d4e 100755 --- a/course/reset.php +++ b/course/reset.php @@ -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'); -- 2.39.5