projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38b06b2
)
Redirect to login screen if not authenticated for this application.
author
Jan Schneider
<jan@horde.org>
Tue, 3 Aug 2010 08:47:07 +0000
(10:47 +0200)
committer
Jan Schneider
<jan@horde.org>
Tue, 3 Aug 2010 17:30:46 +0000
(19:30 +0200)
framework/Core/lib/Horde/Core/Prefs/Ui.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde/Core/Prefs/Ui.php
b/framework/Core/lib/Horde/Core/Prefs/Ui.php
index
3f34b99
..
0576c5b
100644
(file)
--- a/
framework/Core/lib/Horde/Core/Prefs/Ui.php
+++ b/
framework/Core/lib/Horde/Core/Prefs/Ui.php
@@
-104,7
+104,14
@@
class Horde_Core_Prefs_Ui
$this->vars = $vars;
/* Load the application's base environment. */
- $GLOBALS['registry']->pushApp($this->app);
+ try {
+ $GLOBALS['registry']->pushApp($this->app);
+ } catch (Horde_Exception $e) {
+ if ($e->getCode() == Horde_Registry::AUTH_FAILURE) {
+ $GLOBALS['registry']->authenticateFailure($this->app, $e);
+ }
+ throw $e;
+ }
/* Load preferences. */
$this->_loadPrefs($this->app);