Shout: Better handling when permission denied
authorBen Klang <ben@alkaloid.net>
Wed, 13 Jan 2010 22:17:55 +0000 (17:17 -0500)
committerBen Klang <ben@alkaloid.net>
Wed, 13 Jan 2010 22:25:57 +0000 (17:25 -0500)
shout/lib/Application.php

index 7e7a9fa..7a4ec96 100644 (file)
@@ -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'];