Navigation Menu

Skip to content

Commit

Permalink
MDL-34519 - Course reset not protected by proper capability
Browse files Browse the repository at this point in the history
  • Loading branch information
rlorenzo committed Jul 24, 2012
1 parent 9592f5d commit f163187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/reset.php
Expand Up @@ -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');
Expand Down

0 comments on commit f163187

Please sign in to comment.