Bug 294021: Allow requestees to set attachment flags even if they don't have editbugs privs

r=gerv a=justdave


git-svn-id: svn://10.0.0.236/trunk@265293 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzrmirror%bugzilla.org
2014-03-21 11:15:52 +00:00
parent 064535f4e4
commit ccc663f126
7 changed files with 57 additions and 28 deletions

View File

@@ -852,7 +852,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;