diff --git a/library/Icinga/Web/Menu/PermittedMenuItemFilter.php b/library/Icinga/Web/Menu/PermittedMenuItemFilter.php deleted file mode 100644 index 81f44f1f6..000000000 --- a/library/Icinga/Web/Menu/PermittedMenuItemFilter.php +++ /dev/null @@ -1,34 +0,0 @@ -current(); - /** @var Menu $item */ - if (($permission = $item->getPermission()) !== null) { - $auth = Auth::getInstance(); - if (! $auth->isAuthenticated()) { - // Don't accept menu item because user is not authenticated and the menu item requires a permission - return false; - } - if (! $auth->getUser()->can($permission)) { - return false; - } - } - // Accept menu item if it does not require a permission - return true; - } -}