Security: Use PermittedMenuItemFilter in the MenuRenderer

refs #8720
This commit is contained in:
Eric Lippmann 2015-03-12 15:30:10 +01:00
parent e6a60e214c
commit da16bfcef3
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ namespace Icinga\Web;
use Exception; use Exception;
use RecursiveIteratorIterator; use RecursiveIteratorIterator;
use Icinga\Application\Logger; use Icinga\Application\Logger;
use Icinga\Web\Menu\PermittedMenuItemFilter;
/** /**
* A renderer to draw a menu with its sub-menus using an unordered html list * A renderer to draw a menu with its sub-menus using an unordered html list
@ -44,7 +45,7 @@ class MenuRenderer extends RecursiveIteratorIterator
} else { } else {
$this->url = Url::fromPath($url); $this->url = Url::fromPath($url);
} }
parent::__construct($menu, RecursiveIteratorIterator::CHILD_FIRST); parent::__construct(new PermittedMenuItemFilter($menu), RecursiveIteratorIterator::CHILD_FIRST);
} }
/** /**