Merge branch 'MDL-39084-master' of github.com:StudiUM/moodle
This commit is contained in:
+1
-1
@@ -2490,7 +2490,7 @@ abstract class grade_helper {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user