X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d8ac08282dad52789b8bea785e8cddae44085483..a3ae31c:/SL/Dispatcher.pm diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 1261aa72b..8329c5b75 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -235,7 +235,7 @@ sub handle_request { eval { pre_request_checks(script => $script, action => $action, routing_type => $routing_type, script_name => $script_name); - if ( (-e ($::lx_office_conf{paths}->{userspath} . "/nologin")) + if ( SL::System::InstallationLock->is_locked && !is_admin_request(script => $script, script_name => $script_name, routing_type => $routing_type)) { $::form->error($::locale->text('System currently down for maintenance!')); } @@ -251,6 +251,9 @@ sub handle_request { if (($script eq 'login') && !$action) { print $::request->{cgi}->redirect('controller.pl?action=LoginScreen/user_login'); + } elsif ($script eq 'admin') { + ::run($session_result); + } else { $self->redirect_to_login($script) if SL::Auth::SESSION_EXPIRED == $session_result;