diff options
author | justdave%bugzilla.org <> | 2008-03-11 20:50:05 +0000 |
---|---|---|
committer | justdave%bugzilla.org <> | 2008-03-11 20:50:05 +0000 |
commit | 7f377876f0a671ed9e3a2ffd8d64b6b9c2e14444 (patch) | |
tree | b2be076a85b9ef110c0db8a1acbe2ed68dc99a8e | |
parent | Sigh, it is just not my day. Fixing bustage from last bustage fix. (diff) | |
download | bugzilla-7f377876f0a671ed9e3a2ffd8d64b6b9c2e14444.tar.gz bugzilla-7f377876f0a671ed9e3a2ffd8d64b6b9c2e14444.tar.bz2 bugzilla-7f377876f0a671ed9e3a2ffd8d64b6b9c2e14444.zip |
Bug 422111: rederive regexp-based group memberships on the destination user after merging Bugzilla accounts, since some of the merged group memberships may no longer apply.
a=LpSolit
-rw-r--r-- | contrib/merge-users.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/merge-users.pl b/contrib/merge-users.pl index f071f7c2c..5769b8a3d 100644 --- a/contrib/merge-users.pl +++ b/contrib/merge-users.pl @@ -49,6 +49,7 @@ use lib qw(.); use Bugzilla; use Bugzilla::Constants; use Bugzilla::Util; +use Bugzilla::User; use Getopt::Long; use Pod::Usage; @@ -233,4 +234,7 @@ $dbh->do('DELETE FROM profiles WHERE userid = ?', undef, $old_id); # Unlock tables $dbh->bz_unlock_tables(); +my $user = new Bugzilla::User($new_id); +$user->derive_regexp_groups(); + print "Done.\n"; |