From 8814f72dc14bbf0d10dbef759d4a8c71e016dcd3 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Wed, 13 Jan 2010 17:17:55 -0500 Subject: [PATCH] Shout: Better handling when permission denied --- shout/lib/Application.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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']; -- 2.11.0