From: Michael M Slusarz Date: Sat, 9 Oct 2010 07:00:19 +0000 (-0600) Subject: Don't authenticate to non-applications X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=724963997513e9645feaaf3b3d8fd82ebdf344cc;p=horde.git Don't authenticate to non-applications --- diff --git a/framework/Core/lib/Horde/Core/Sidebar.php b/framework/Core/lib/Horde/Core/Sidebar.php index 278772a72..54f0b5487 100644 --- a/framework/Core/lib/Horde/Core/Sidebar.php +++ b/framework/Core/lib/Horde/Core/Sidebar.php @@ -26,7 +26,7 @@ class Horde_Core_Sidebar $isAdmin = $registry->isAdmin(); $menu = $parents = array(); - foreach ($registry->listApps(array('active', 'admin', 'heading', 'notoolbar', 'sidebar'), true) as $app => $params) { + foreach ($registry->listApps(array('active', 'admin', 'heading', 'notoolbar', 'sidebar'), true, null) as $app => $params) { /* Check if the current user has permisson to see this * application, and if the application is active. Headings are * visible to everyone (but get filtered out later if they @@ -34,8 +34,8 @@ class Horde_Core_Sidebar * applications except those marked 'inactive'. */ if ($isAdmin || ($params['status'] == 'heading') || - ($registry->hasPermission($app, Horde_Perms::SHOW) && - in_array($params['status'], array('active', 'sidebar')))) { + (in_array($params['status'], array('active', 'sidebar') && + $registry->hasPermission($app, Horde_Perms::SHOW)))) { $menu[$app] = $params; if (isset($params['menu_parent'])) {