projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1135ed8
)
Shout: Better handling when permission denied
author
Ben Klang
<ben@alkaloid.net>
Wed, 13 Jan 2010 22:17:55 +0000
(17:17 -0500)
committer
Ben Klang
<ben@alkaloid.net>
Wed, 13 Jan 2010 22:25:57 +0000
(17:25 -0500)
shout/lib/Application.php
patch
|
blob
|
history
diff --git
a/shout/lib/Application.php
b/shout/lib/Application.php
index
7e7a9fa
..
7a4ec96
100644
(file)
--- 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'];