diff options
-rw-r--r-- | Bugzilla/User.pm | 4 | ||||
-rw-r--r-- | extensions/BMO/Extension.pm | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 727bb9f2c..1c6e68078 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -150,7 +150,7 @@ sub new { my $class = ref($invocant) || $invocant; my ($param) = @_; - my $user = DEFAULT_USER; + my $user = { %{ DEFAULT_USER() } }; bless ($user, $class); return $user unless $param; @@ -168,7 +168,7 @@ sub super_user { my $class = ref($invocant) || $invocant; my ($param) = @_; - my $user = dclone(DEFAULT_USER); + my $user = { %{ DEFAULT_USER() } }; $user->{groups} = [Bugzilla::Group->get_all]; $user->{bless_groups} = [Bugzilla::Group->get_all]; bless $user, $class; diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index 8449c831b..0542b4485 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -717,7 +717,9 @@ sub field_end_of_create { # Create an IT bug so Mozilla's DBAs so they can update the grants for metrics - if (Bugzilla->params->{'urlbase'} ne 'https://bugzilla.mozilla.org/') { + if (Bugzilla->params->{'urlbase'} ne 'https://bugzilla.mozilla.org/' + && Bugzilla->params->{'urlbase'} ne 'https://bugzilla.allizom.org/') + { return; } |