From 724963997513e9645feaaf3b3d8fd82ebdf344cc Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sat, 9 Oct 2010 01:00:19 -0600 Subject: [PATCH] Don't authenticate to non-applications --- framework/Core/lib/Horde/Core/Sidebar.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'])) { -- 2.11.0