From 1b9b086ff87a1cb2d6893892b3d66cfd413fdd35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 20 Jul 2015 16:18:42 +0200 Subject: [PATCH] Admin: Standardgruppe erst anlegen, wenn keine dbupgrade mehr --- SL/Controller/Admin.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/Controller/Admin.pm b/SL/Controller/Admin.pm index 2fb7de6ef..ebbcb774f 100644 --- a/SL/Controller/Admin.pm +++ b/SL/Controller/Admin.pm @@ -81,6 +81,8 @@ sub action_create_auth_tables { $::auth->set_session_value('admin_password', $::lx_office_conf{authentication}->{admin_password}); $::auth->create_or_refresh_session; + return if $self->apply_dbupgrade_scripts; + my $group = (SL::DB::Manager::AuthGroup->get_all(limit => 1))[0]; if (!$group) { SL::DB::AuthGroup->new( @@ -90,9 +92,7 @@ sub action_create_auth_tables { )->save; } - if (!$self->apply_dbupgrade_scripts) { - $self->action_login; - } + $self->action_login; } # -- 2.20.1