summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-04-30 16:17:20 +0200
committerByron Jones <bjones@mozilla.com>2012-04-30 16:17:20 +0200
commitf703087eec36da5a957ae5bcd28f3a0e23fde770 (patch)
tree8d39f4d562f65efe6492f4db74427e48fca56fc3
parent6d979c6365dda7de39ab64f27c8997694ba41590 (diff)
downloadbugzilla-f703087eec36da5a957ae5bcd28f3a0e23fde770.tar.gz
bugzilla-f703087eec36da5a957ae5bcd28f3a0e23fde770.tar.xz
Bug 750144: default sec-groups for products should always be filable
-rw-r--r--extensions/BMO/Extension.pm2
-rw-r--r--extensions/BMO/lib/Data.pm3
2 files changed, 4 insertions, 1 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index e7f6554e4..ab0be0819 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -581,7 +581,7 @@ sub bug_check_groups {
: [ map { trim($_) } split(',', $group_names) ];
foreach my $name (@$group_names) {
- if ($always_fileable_group{$name}) {
+ if (exists $always_fileable_group{$name}) {
my $group = new Bugzilla::Group({ name => $name }) or next;
$add_groups->{$group->id} = $group;
}
diff --git a/extensions/BMO/lib/Data.pm b/extensions/BMO/lib/Data.pm
index 929498e74..798162fbd 100644
--- a/extensions/BMO/lib/Data.pm
+++ b/extensions/BMO/lib/Data.pm
@@ -335,4 +335,7 @@ our %product_sec_groups = (
"_default" => 'core-security'
);
+# Default security groups for products should always been fileable
+map { $always_fileable_group{$_} = 1 } values %product_sec_groups;
+
1;