Permalink
Browse files

MDL-34519 - Course reset not protected by proper capability

  • Loading branch information...
1 parent 9592f5d commit f1631871b8b92fd284156aa498d097f6dd2a1781 @rlorenzo rlorenzo committed Jul 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/reset.php
View
@@ -39,7 +39,7 @@
$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');

0 comments on commit f163187

Please sign in to comment.