From e74681c8b211b3f87da63f98999c5b0c27c1081c Mon Sep 17 00:00:00 2001 From: Rex Lorenzo Date: Tue, 24 Jul 2012 12:01:11 -0700 Subject: [PATCH] MDL-34519 - Course reset not protected by proper capability --- course/reset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/reset.php b/course/reset.php index cd0a66b640d..088c2036bb4 100644 --- a/course/reset.php +++ b/course/reset.php @@ -39,7 +39,7 @@ if (!$course = $DB->get_record('course', array('id'=>$id))) { $PAGE->set_url('/course/reset.php', array('id'=>$id)); require_login($course); -require_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id)); +require_capability('moodle/course:reset', get_context_instance(CONTEXT_COURSE, $course->id)); $strreset = get_string('reset'); $strresetcourse = get_string('resetcourse');