From: Alexander Ebert Date: Mon, 28 Jan 2013 16:16:50 +0000 (+0100) Subject: Forcing landing page to be always accessible X-Git-Tag: 2.0.0_Beta_1~531^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f431f2c280fc18b152d756feb182a12990fbda9c;p=GitHub%2FWoltLab%2FWCF.git Forcing landing page to be always accessible Fixes #1111 --- 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();