diff options
author | Matt Selsky <selsky@columbia.edu> | 2012-06-26 22:37:36 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-06-26 22:37:36 +0200 |
commit | 0df807b5f9ae1425fc24ada6fdcb4c672e4e8f6f (patch) | |
tree | 8fb05bcc746d04d424d395c23a9bea56b427a81e /Bugzilla/Install.pm | |
parent | Bug 766528: Use field-label.html.tmpl for timetracking fields (diff) | |
download | bugzilla-0df807b5f9ae1425fc24ada6fdcb4c672e4e8f6f.tar.gz bugzilla-0df807b5f9ae1425fc24ada6fdcb4c672e4e8f6f.tar.bz2 bugzilla-0df807b5f9ae1425fc24ada6fdcb4c672e4e8f6f.zip |
Bug 725373: Making someone an admin using checksetup.pl should enable their account if it's disabled
r/a=LpSolit
Diffstat (limited to 'Bugzilla/Install.pm')
-rw-r--r-- | Bugzilla/Install.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm index cffcc704b..5d18a9aac 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 }); } |