Skip to content

Commit

Permalink
Merge branch 'MDL-39084-moodle24' of github.com:StudiUM/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_24_STABLE
  • Loading branch information
Damyon Wiese committed Apr 19, 2013
2 parents 3054e59 + efc0be3 commit 501dd08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grade/lib.php
Expand Up @@ -2461,7 +2461,7 @@ public static function get_info_manage_settings($courseid) {
return self::$managesetting; return self::$managesetting;
} }
$context = context_course::instance($courseid); $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')); self::$managesetting = new grade_plugin_info('coursesettings', new moodle_url('/grade/edit/settings/index.php', array('id'=>$courseid)), get_string('course'));
} else { } else {
self::$managesetting = false; self::$managesetting = false;
Expand Down

0 comments on commit 501dd08

Please sign in to comment.