Permalink
Browse files

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

…e settings section
  • Loading branch information...
1 parent 3a8c438 commit 25e500f621ff9d0284038317f61954dc8888b031 @gaudreaj gaudreaj committed Apr 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 grade/lib.php
View
2 grade/lib.php
@@ -2490,7 +2490,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 25e500f

Please sign in to comment.