From da16bfcef30790ae08ac3c211d08c3d13c069a5e Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 12 Mar 2015 15:30:10 +0100 Subject: [PATCH] Security: Use PermittedMenuItemFilter in the MenuRenderer refs #8720 --- library/Icinga/Web/MenuRenderer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/MenuRenderer.php b/library/Icinga/Web/MenuRenderer.php index 78e910f61..7d2cd5ad3 100644 --- a/library/Icinga/Web/MenuRenderer.php +++ b/library/Icinga/Web/MenuRenderer.php @@ -6,6 +6,7 @@ namespace Icinga\Web; 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 @@ -44,7 +45,7 @@ class MenuRenderer extends RecursiveIteratorIterator } else { $this->url = Url::fromPath($url); } - parent::__construct($menu, RecursiveIteratorIterator::CHILD_FIRST); + parent::__construct(new PermittedMenuItemFilter($menu), RecursiveIteratorIterator::CHILD_FIRST); } /**