mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
merged fixed gradebookroles settings
This commit is contained in:
parent
bf228101fd
commit
3fae9f5718
@ -2327,13 +2327,7 @@ class admin_setting_special_gradebookroles extends admin_setting {
|
||||
if (!empty($CFG->{$this->name})) {
|
||||
return explode(',', $CFG->{$this->name});
|
||||
} else {
|
||||
$value = array();
|
||||
if ($studentroles = get_roles_with_capability('moodle/legacy:student', CAP_ALLOW)) {
|
||||
foreach ($studentroles as $roleid=>$studentrole) {
|
||||
$value[] = $roleid;
|
||||
}
|
||||
}
|
||||
return $value;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user