summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install.pm
diff options
context:
space:
mode:
authorMatt Selsky <selsky@columbia.edu>2012-06-26 22:37:36 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-06-26 22:37:36 +0200
commit0df807b5f9ae1425fc24ada6fdcb4c672e4e8f6f (patch)
tree8fb05bcc746d04d424d395c23a9bea56b427a81e /Bugzilla/Install.pm
parent5f7d68ec7d74700f54ee6802309c312fd0468657 (diff)
downloadbugzilla-0df807b5f9ae1425fc24ada6fdcb4c672e4e8f6f.tar.gz
bugzilla-0df807b5f9ae1425fc24ada6fdcb4c672e4e8f6f.tar.xz
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.pm6
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 });
}