Browse files

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

…e settings section
  • Loading branch information...
1 parent 931eff3 commit efc0be399e94182514fb56d9d84f644f27582a81 @gaudreaj gaudreaj committed Apr 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 grade/lib.php
View
2 grade/lib.php
@@ -2461,7 +2461,7 @@ public static function get_info_manage_settings($courseid) {
return self::$managesetting;
}
$context = context_course::instance($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;

0 comments on commit efc0be3

Please sign in to comment.