From 879abbad15598aba736c740065bf03bceaacac83 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 11 Mar 2010 15:49:55 +0100 Subject: [PATCH] Exception im boopstrapping: Wenn keine auth db vorhanden ist, sofort auf adminmaske. --- SL/Dispatcher.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; } -- 2.20.1