mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
merged fixed gradebookroles settings
This commit is contained in:
parent
bf228101fd
commit
3fae9f5718
1 changed files with 1 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue