Skip to content

Commit

Permalink
Security: Use PermittedMenuItemFilter in the MenuRenderer
Browse files Browse the repository at this point in the history
refs #8720
  • Loading branch information
lippserd committed Mar 12, 2015
1 parent e6a60e2 commit da16bfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/Icinga/Web/MenuRenderer.php
Expand Up @@ -6,6 +6,7 @@
use Exception;
use RecursiveIteratorIterator;
use Icinga\Application\Logger;
use Icinga\Web\Menu\PermittedMenuItemFilter;

/**
* A renderer to draw a menu with its sub-menus using an unordered html list
Expand Down Expand Up @@ -44,7 +45,7 @@ public function __construct(Menu $menu, $url = null)
} else {
$this->url = Url::fromPath($url);
}
parent::__construct($menu, RecursiveIteratorIterator::CHILD_FIRST);
parent::__construct(new PermittedMenuItemFilter($menu), RecursiveIteratorIterator::CHILD_FIRST);
}

/**
Expand Down

0 comments on commit da16bfc

Please sign in to comment.