Skip to content

Commit

Permalink
[FIX] 0036196, 0036192, 0036193, 0036194, 0036195, 0036198 and others…
Browse files Browse the repository at this point in the history
…: Admin-Knoten "XY" ohne entsprechendes Recht sichtbar
  • Loading branch information
chfsx committed Feb 1, 2023
1 parent e76e676 commit d2f6781
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
Expand All @@ -17,6 +16,8 @@
*
*********************************************************************/

declare(strict_types=1);

namespace ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer;

use ILIAS\GlobalScreen\Scope\MainMenu\Factory\isItem;
Expand Down Expand Up @@ -71,7 +72,9 @@ protected function buildEntry(AbstractChildItem $item): Component
case LinkList::class:
$links = [];
foreach ($item->getLinks() as $child) {
$links[] = $this->buildEntry($child);
if ($child->isVisible()) {
$links[] = $this->buildEntry($child);
}
}
$entry = $this->ui_factory->menu()->sub($title, $links);
break;
Expand Down

0 comments on commit d2f6781

Please sign in to comment.