Skip to content

Commit

Permalink
MDL-73487 navigation: Remove outcomes from course admin overflow nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihail Geshoski committed Jan 4, 2022
1 parent 541d999 commit cb9e513
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/classes/navigation/views/secondary.php
Expand Up @@ -434,9 +434,11 @@ protected function get_course_overflow_nodes(): ?navigation_node {
$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.
Expand Down

0 comments on commit cb9e513

Please sign in to comment.