MDL-73487 navigation: Remove outcomes from course admin overflow nodes

This commit is contained in:
Mihail Geshoski 2022-01-04 14:57:06 +08:00
parent 541d999d27
commit cb9e513ee5

View File

@ -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.