From: Sven Schöling Date: Mon, 20 Jul 2015 14:18:42 +0000 (+0200) Subject: Admin: Standardgruppe erst anlegen, wenn keine dbupgrade mehr X-Git-Tag: release-3.3.0beta~31^2~6 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1b9b086ff87a1cb2d6893892b3d66cfd413fdd35;p=kivitendo-erp.git Admin: Standardgruppe erst anlegen, wenn keine dbupgrade mehr --- 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; } #