summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-12-10 22:46:21 +0100
committerByron Jones <bjones@mozilla.com>2013-12-10 22:46:21 +0100
commite9af1600485761fb2f079d7d30a7be587bdec628 (patch)
tree619768ff19464df629d405c02ab82791ebad22ab
parent94af61a890b8a465bbf8fef86b6273e51190e7b9 (diff)
downloadbugzilla-e9af1600485761fb2f079d7d30a7be587bdec628.tar.gz
bugzilla-e9af1600485761fb2f079d7d30a7be587bdec628.tar.xz
fix issue with switching to the super_user during checksetup
-rw-r--r--Bugzilla/User.pm4
-rw-r--r--extensions/BMO/Extension.pm4
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;
}