summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-03-31 17:12:20 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-03-31 17:12:20 +0200
commit71927e7ee069c33019780158670df2415ee1ef3b (patch)
tree49909ccedf89547f444b44d5aa15b6a82f84aa15 /Bugzilla/WebService
parent8e4cf05adac6aa915c7d38d9a1aa93c0c62127b3 (diff)
downloadbugzilla-71927e7ee069c33019780158670df2415ee1ef3b.tar.gz
bugzilla-71927e7ee069c33019780158670df2415ee1ef3b.tar.xz
Bug 989650 - backport bug 294021 to bmo/4.2 to allow requestees to set attachment flags even if they don't have editbugs privs
r=glob
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Bug.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index 80a055ae2..ef3b14f63 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -909,7 +909,7 @@ sub update_attachment {
|| ThrowUserError("invalid_attach_id", { attach_id => $id });
my $bug = $attachment->bug;
$attachment->_check_bug;
- $attachment->validate_can_edit($bug->product_id)
+ $attachment->validate_can_edit
|| ThrowUserError("illegal_attachment_edit", { attach_id => $id });
push @attachments, $attachment;