mirror of
https://github.com/moodle/moodle.git
synced 2025-04-05 00:12:42 +02:00
MDL-73487 navigation: Remove outcomes from course admin overflow nodes
This commit is contained in:
parent
541d999d27
commit
cb9e513ee5
@ -434,9 +434,11 @@ class secondary extends view {
|
||||
$thissettings = $this->get_children_key_list();
|
||||
$diff = array_diff($coursesettings, $thissettings);
|
||||
|
||||
// Remove our specific created elements (user - participants, badges - coursebadges, grades - gradebooksetup).
|
||||
// Remove our specific created elements (user - participants, badges - coursebadges, grades - gradebooksetup,
|
||||
// grades - outcomes).
|
||||
$shortdiff = array_filter($diff, function($value) {
|
||||
return !($value == 'users' || $value == 'coursebadges' || $value == 'gradebooksetup');
|
||||
return !($value == 'users' || $value == 'coursebadges' || $value == 'gradebooksetup' ||
|
||||
$value == 'outcomes');
|
||||
});
|
||||
|
||||
// Permissions may be in play here that ultimately will show no overflow.
|
||||
|
Loading…
x
Reference in New Issue
Block a user