]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 725373: Making someone an admin using checksetup.pl should enable their account...
authorMatt Selsky <selsky@columbia.edu>
Tue, 26 Jun 2012 20:37:36 +0000 (22:37 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 26 Jun 2012 20:37:36 +0000 (22:37 +0200)
r/a=LpSolit

Bugzilla/Install.pm

index cffcc704b91eac51917c96e9fe56dce8b633c7ef..5d18a9aac69b91014d9e48136c6836497d0c71c3 100644 (file)
@@ -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 });
     }