diff options
author | Vladimir Panteleev <github.private@thecybershadow.net> | 2018-03-18 06:00:50 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-03-18 06:00:50 +0100 |
commit | 759243934df6a3a1d4bcfacc58ce842206923731 (patch) | |
tree | 759dc4f1b24c6f33c30f1ee787a99acde54df213 /extensions/TrackingFlags | |
parent | 38c94eb24d045f086e257c095113ad39ce603e65 (diff) | |
download | bugzilla-759243934df6a3a1d4bcfacc58ce842206923731.tar.gz bugzilla-759243934df6a3a1d4bcfacc58ce842206923731.tar.xz |
Bug 1446236 - Allow customizing the name of the "nobody" user (nobody@mozilla.org)
Diffstat (limited to 'extensions/TrackingFlags')
-rwxr-xr-x | extensions/TrackingFlags/bin/bug_825946.pl | 2 | ||||
-rwxr-xr-x | extensions/TrackingFlags/bin/bulk_flag_clear.pl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/TrackingFlags/bin/bug_825946.pl b/extensions/TrackingFlags/bin/bug_825946.pl index 3f380b7ac..896dc5448 100755 --- a/extensions/TrackingFlags/bin/bug_825946.pl +++ b/extensions/TrackingFlags/bin/bug_825946.pl @@ -24,7 +24,7 @@ use Bugzilla::Bug qw(LogActivityEntry); Bugzilla->usage_mode(USAGE_MODE_CMDLINE); my $dbh = Bugzilla->dbh; -my $user = Bugzilla::User->check({name => 'nobody@mozilla.org'}); +my $user = Bugzilla::User->check({name => Bugzilla->params->{'nobody_user'}}); my $tf_vis = $dbh->selectall_arrayref(<<SQL); SELECT diff --git a/extensions/TrackingFlags/bin/bulk_flag_clear.pl b/extensions/TrackingFlags/bin/bulk_flag_clear.pl index 1745018d5..305fbf883 100755 --- a/extensions/TrackingFlags/bin/bulk_flag_clear.pl +++ b/extensions/TrackingFlags/bin/bulk_flag_clear.pl @@ -110,7 +110,7 @@ if (!$config->{update_db}) { # update bugs -my $nobody = Bugzilla::User->check({ name => 'nobody@mozilla.org' }); +my $nobody = Bugzilla::User->check({ name => Bugzilla->params->{'nobody_user'} }); # put our nobody user into all groups to avoid permissions issues $nobody->{groups} = [Bugzilla::Group->get_all]; Bugzilla->set_user($nobody); |