From: Matt Selsky Date: Tue, 26 Jun 2012 20:37:36 +0000 (+0200) Subject: Bug 725373: Making someone an admin using checksetup.pl should enable their account... X-Git-Tag: bugzilla-4.3.2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0df807b5f9ae1425fc24ada6fdcb4c672e4e8f6f;p=thirdparty%2Fbugzilla.git Bug 725373: Making someone an admin using checksetup.pl should enable their account if it's disabled r/a=LpSolit --- diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm index cffcc704b9..5d18a9aac6 100644 --- a/Bugzilla/Install.pm +++ b/Bugzilla/Install.pm @@ -378,6 +378,12 @@ sub make_admin { write_params(); } + # Make sure the new admin isn't disabled + if ($user->disabledtext) { + $user->set_disabledtext(''); + $user->update(); + } + if (Bugzilla->usage_mode == USAGE_MODE_CMDLINE) { say "\n", get_text('install_admin_created', { user => $user }); }