Browse files

MDL-34519 - Course reset not protected by proper capability

  • Loading branch information...
1 parent 33faa0d commit e74681c8b211b3f87da63f98999c5b0c27c1081c @rlorenzo rlorenzo committed Jul 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/reset.php
View
2 course/reset.php
@@ -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 e74681c

Please sign in to comment.