mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'wip-mdl-55415' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
29788d1b3c
@ -4174,6 +4174,14 @@ function course_get_user_administration_options($course, $context) {
|
||||
}
|
||||
}
|
||||
$options->grades = $grades;
|
||||
} else {
|
||||
// Set default options to false.
|
||||
$listofoptions = array('tags', 'gradebook', 'outcomes', 'badges', 'import', 'publish', 'reset', 'roles', 'grades');
|
||||
|
||||
foreach ($listofoptions as $option) {
|
||||
$options->$option = false;
|
||||
}
|
||||
}
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user