summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/Extension.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-08-26 08:36:43 +0200
committerDylan William Hardison <dylan@hardison.net>2018-08-26 08:36:43 +0200
commitf64b0d503df0ea11b3ec26f452c581493f832233 (patch)
tree6a644773237e579b58b3b4ac31a0eae1d5ec45a5 /extensions/BMO/Extension.pm
parent17502a9d155ecdff4b429b6fd65906b2069486b8 (diff)
downloadbugzilla-f64b0d503df0ea11b3ec26f452c581493f832233.tar.gz
bugzilla-f64b0d503df0ea11b3ec26f452c581493f832233.tar.xz
use insider group instead of hard-coding core-security
Diffstat (limited to 'extensions/BMO/Extension.pm')
-rw-r--r--extensions/BMO/Extension.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 0a3389e5d..7499f0d1c 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -1528,15 +1528,15 @@ sub install_update_db {
"www.mozilla.org" => 'websites-security',
);
# 1. Set all to core-security by default
- my $core_sec_group = Bugzilla::Group->new({ name => 'core-security' });
+ my $core_sec_group = Bugzilla::Group->new({ name => Bugzilla->params->{insidergroup} });
$dbh->do("UPDATE products SET security_group_id = ?", undef, $core_sec_group->id);
# 2. Update the ones that have explicit security groups
foreach my $prod_name (keys %product_sec_groups) {
my $group_name = $product_sec_groups{$prod_name};
- next if $group_name eq 'core-security'; # already done
+ next if $group_name eq Bugzilla->params->{insidergroup}; # already done
my $group = Bugzilla::Group->new({ name => $group_name, cache => 1 });
if (!$group) {
- warn "Security group $group_name not found. Using core-security instead.\n";
+ warn "Security group $group_name not found. Using insider group instead.\n";
next;
}
$dbh->do("UPDATE products SET security_group_id = ? WHERE name = ?", undef, $group->id, $prod_name);