Permalink
Browse files

Merge branch 'MDL-39084-moodle23' of github.com:StudiUM/moodle into M…

…OODLE_23_STABLE
  • Loading branch information...
2 parents 8f6894b + ec93440 commit 472ec72b2a8c3878ce8346f97710fd2dee2e1194 @damyon damyon committed Apr 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 472ec72

Please sign in to comment.