Fixed user-menu issue
authorMarcel Werk <burntime@woltlab.com>
Mon, 25 Apr 2016 16:05:15 +0000 (18:05 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 26 Apr 2016 11:44:54 +0000 (13:44 +0200)
wcfsetup/install/files/lib/system/menu/user/UserMenu.class.php

index 8a13b286d7987ab6e40dd2d1a1783c1af93c29ee..0de78bae812f8a4e271c3d13b4e7f07e4359f3d7 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 namespace wcf\system\menu\user;
-use wcf\data\ProcessibleDatabaseObject;
 use wcf\system\cache\builder\UserMenuCacheBuilder;
 use wcf\system\menu\ITreeMenuItem;
 use wcf\system\menu\TreeMenu;
@@ -17,7 +16,7 @@ use wcf\system\menu\TreeMenu;
  */
 class UserMenu extends TreeMenu {
        /**
-        * @see TreeMenu::loadCache()
+        * @inheritDoc
         */
        protected function loadCache() {
                parent::loadCache();
@@ -26,15 +25,11 @@ class UserMenu extends TreeMenu {
        }
        
        /**
-        * @see TreeMenu::checkMenuItem()
+        * @inheritDoc
         */
        protected function checkMenuItem(ITreeMenuItem $item) {
                if (!parent::checkMenuItem($item)) return false;
                
-               /*if ($item instanceof ProcessibleDatabaseObject && $item->getProcessor() instanceof IPageMenuItemProvider) { @todo
-                       return $item->getProcessor()->isVisible();
-               }*/
-               
-               return true;
+               return $item->getProcessor()->isVisible();
        }
 }