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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user