Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-34519 - Course reset not protected by proper capability

  • Loading branch information...
commit 9eba24266bbb88e4bf5d60757d1b54d6df8ffba3 1 parent 3294034
@rlorenzo rlorenzo authored
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');
Please sign in to comment.
Something went wrong with that request. Please try again.