From: Ben Klang Date: Wed, 13 Jan 2010 22:17:55 +0000 (-0500) Subject: Shout: Better handling when permission denied X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8814f72dc14bbf0d10dbef759d4a8c71e016dcd3;p=horde.git Shout: Better handling when permission denied --- diff --git a/shout/lib/Application.php b/shout/lib/Application.php index 7e7a9fad5..7a4ec9676 100644 --- a/shout/lib/Application.php +++ b/shout/lib/Application.php @@ -46,7 +46,10 @@ class Shout_Application extends Horde_Registry_Application try { $registry->pushApp('shout'); } catch (Horde_Exception $e) { - Horde_Auth::authenticateFailure('shout', $e); + if ($e->getCode() == 'permission_denied') { + Horde::authenticationFailureRedirect(); + } + Horde::fatal($e, __FILE__, __LINE__, false); } $conf = &$GLOBALS['conf'];