summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-27 06:22:05 +0200
committerByron Jones <glob@mozilla.com>2015-07-27 06:22:05 +0200
commit6dd1813d03246095b46db4e7e824d6aaae3b6058 (patch)
tree1c3517a7c34f5021d36e67578ca2feb506230e21 /Bugzilla
parenta8ef3e105b01d4a7f765edbe53b7af53ed179020 (diff)
downloadbugzilla-6dd1813d03246095b46db4e7e824d6aaae3b6058.tar.gz
bugzilla-6dd1813d03246095b46db4e7e824d6aaae3b6058.tar.xz
Bug 1186776 - allow users to set keywords on bug creation (via API/internally only)
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm8
1 files changed, 1 insertions, 7 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 76b845f71..256784022 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1887,13 +1887,7 @@ sub _check_keywords {
$keywords_in = trim($keywords_in);
$keyword_array = [split(/[\s,]+/, $keywords_in)];
}
-
- # On creation, only editbugs users can set keywords.
- if (!ref $invocant) {
- my $product = $params->{product};
- return [] if !Bugzilla->user->in_group('editbugs', $product->id);
- }
-
+
my %keywords;
foreach my $keyword (@$keyword_array) {
next unless $keyword;