Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-39084 grade: Capability checks are incoherent for the Course grad…

…e settings section
  • Loading branch information...
commit ec934409e600b9339444675a04ee63b304a751aa 1 parent 7b9df23
Jean-Philippe Gaudreau gaudreaj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  grade/lib.php
2  grade/lib.php
View
@@ -2424,7 +2424,7 @@ public static function get_info_manage_settings($courseid) {
return self::$managesetting;
}
$context = get_context_instance(CONTEXT_COURSE, $courseid);
- if (has_capability('moodle/course:update', $context)) {
+ if (has_capability('moodle/grade:manage', $context)) {
self::$managesetting = new grade_plugin_info('coursesettings', new moodle_url('/grade/edit/settings/index.php', array('id'=>$courseid)), get_string('course'));
} else {
self::$managesetting = false;
Please sign in to comment.
Something went wrong with that request. Please try again.