summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorHugo Seabrook <hugo.seabrook@gmail.com>2013-02-15 07:08:31 +0100
committerByron Jones <bjones@mozilla.com>2013-02-15 07:08:31 +0100
commit82bab122d14431f4bf3f1c31988434aec2386515 (patch)
tree41e42e583fb0438c3382079f634df65d52cb0cbd /Bugzilla/Bug.pm
parent921e81caf7ffc083ac664459b015d38fc250437d (diff)
downloadbugzilla-82bab122d14431f4bf3f1c31988434aec2386515.tar.gz
bugzilla-82bab122d14431f4bf3f1c31988434aec2386515.tar.xz
Bug 830330: Make flags honour bug_check_can_change_field
r=dkl, a=LpSolit
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 547e35fa7..5069214ba 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -4085,8 +4085,8 @@ sub check_can_change_field {
return 1;
}
- # Allow anyone to change comments.
- if ($field =~ /^longdesc/) {
+ # Allow anyone to change comments, or set flags
+ if ($field =~ /^longdesc/ || $field eq 'flagtypes.name') {
return 1;
}