Exception im boopstrapping: Wenn keine auth db vorhanden ist, sofort auf adminmaske.
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 11 Mar 2010 14:49:55 +0000 (15:49 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 20 Jul 2010 09:22:56 +0000 (11:22 +0200)
SL/Dispatcher.pm

index 6208574..147b8cc 100644 (file)
@@ -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;
 }