From cb114b288edd36558e0763fff34e331b2994d534 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 19 Apr 2010 11:03:38 +0200 Subject: [PATCH] Datei users/nologin auch auswerten, wenn login.pl aufgerufen wird --- SL/Dispatcher.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 147b8cc3e..abba153eb 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -150,14 +150,14 @@ sub handle_request { pre_request_checks(); eval { + $::form->error($::locale->text('System currently down for maintenance!')) if -e "$::userspath/nologin" && $script ne 'admin'; + if ($script eq 'login' or $script eq 'admin' or $script eq 'kopf') { $::form->{titlebar} = "Lx-Office " . $::locale->text('Version') . " $::form->{version}"; ::run($::auth->restore_session); } elsif ($action) { # copy from am.pl routines - $::form->error($::locale->text('System currently down for maintenance!')) if -e "$main::userspath/nologin" && $script ne 'admin'; - my $session_result = $::auth->restore_session; show_error('login/password_error', 'session') if SL::Auth::SESSION_EXPIRED == $session_result; -- 2.20.1