Fixes merged from HEAD for MDL-10833

This commit is contained in:
moodler 2007-09-04 08:14:33 +00:00
parent 6255297f0b
commit bf4c59aa42

View file

@ -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');