projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf68e6b
)
Exception im boopstrapping: Wenn keine auth db vorhanden ist, sofort auf adminmaske.
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 11 Mar 2010 14:49:55 +0000
(15:49 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 20 Jul 2010 09:22:56 +0000
(11:22 +0200)
SL/Dispatcher.pm
patch
|
blob
|
history
diff --git
a/SL/Dispatcher.pm
b/SL/Dispatcher.pm
index
6208574
..
147b8cc
100644
(file)
--- a/
SL/Dispatcher.pm
+++ b/
SL/Dispatcher.pm
@@
-26,7
+26,14
@@
use File::Basename;
use constant END_OF_REQUEST => "END-OF-REQUEST\n";
sub pre_request_checks {
- show_error('login/auth_db_unreachable') unless $::auth->session_tables_present;
+ if (!$::auth->session_tables_present) {
+ if ($::form->{script} eq 'admin.pl') {
+ ::run();
+ ::end_of_request();
+ } else {
+ show_error('login/auth_db_unreachable');
+ }
+ }
$::auth->expire_sessions;
}