From f431f2c280fc18b152d756feb182a12990fbda9c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 28 Jan 2013 17:16:50 +0100 Subject: [PATCH] Forcing landing page to be always accessible Fixes #1111 --- .../install/files/lib/system/menu/page/PageMenu.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/lib/system/menu/page/PageMenu.class.php b/wcfsetup/install/files/lib/system/menu/page/PageMenu.class.php index 5f8a9aad0e..f0b440975d 100644 --- a/wcfsetup/install/files/lib/system/menu/page/PageMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/page/PageMenu.class.php @@ -87,6 +87,11 @@ class PageMenu extends TreeMenu { * @see wcf\system\menu\TreeMenu::checkMenuItem() */ protected function checkMenuItem(ITreeMenuItem $item) { + // landing page must always be accessible + if ($item->isLandingPage) { + return true; + } + if (!parent::checkMenuItem($item)) return false; return $item->getProcessor()->isVisible(); -- 2.20.1