From 570836e4f67846ea865ef4ea9d9a382ab0be541f Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 31 May 2010 17:08:02 +0100 Subject: [PATCH] Re-add check that got lost somehow and allowed guest access to all applications. --- framework/Core/lib/Horde/Registry.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 8dd741e5a..c6de0356c 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -1224,8 +1224,9 @@ class Horde_Registry /* Otherwise, allow access for admins, for apps that do not have any * explicit permissions, or for apps that allow the given permission. */ return Horde_Auth::isAdmin() || - !$GLOBALS['injector']->getInstance('Horde_Perms')->exists($app) || - $GLOBALS['injector']->getInstance('Horde_Perms')->hasPermission($app, Horde_Auth::getAuth(), $perms); + ($GLOBALS['injector']->getInstance('Horde_Perms')->exists($app) + ? $GLOBALS['injector']->getInstance('Horde_Perms')->hasPermission($app, Horde_Auth::getAuth(), $perms) + : (bool)Horde_Auth::getAuth()); } /** -- 2.11.0