From: justdave%bugzilla.org <> Date: Tue, 11 Mar 2008 20:50:05 +0000 (+0000) Subject: Bug 422111: rederive regexp-based group memberships on the destination user after... X-Git-Tag: bugzilla-3.0.4~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f377876f0a671ed9e3a2ffd8d64b6b9c2e14444;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/contrib/merge-users.pl b/contrib/merge-users.pl index f071f7c2c1..5769b8a3dc 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";