From: Jan Date: Mon, 31 May 2010 16:08:02 +0000 (+0100) Subject: Re-add check that got lost somehow and allowed guest access to all applications. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=570836e4f67846ea865ef4ea9d9a382ab0be541f;p=horde.git Re-add check that got lost somehow and allowed guest access to all applications. --- 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()); } /**