From: Sven Schöling Date: Thu, 11 Mar 2010 14:49:55 +0000 (+0100) Subject: Exception im boopstrapping: Wenn keine auth db vorhanden ist, sofort auf adminmaske. X-Git-Tag: release-2.6.2beta1~271 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=879abbad15598aba736c740065bf03bceaacac83;p=kivitendo-erp.git Exception im boopstrapping: Wenn keine auth db vorhanden ist, sofort auf adminmaske. --- diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 620857459..147b8cc3e 100644 --- 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; }