Commit 59ef7920 authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

Bug 312773 attachment.cgi is broken due to bug 309681

Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel, a=justdave
parent acb05a7b
......@@ -218,7 +218,7 @@ sub validateCanChangeAttachment
ON bugs.bug_id = attachments.bug_id
WHERE attach_id = $attachid");
my $productid = FetchOneColumn();
Bugzilla->user->can_edit_product_id($productid)
Bugzilla->user->can_edit_product($productid)
|| ThrowUserError("illegal_attachment_edit",
{ attach_id => $attachid });
}
......@@ -230,7 +230,7 @@ sub validateCanChangeBug
FROM bugs
WHERE bug_id = $bugid");
my $productid = FetchOneColumn();
CanEditProductId($productid)
Bugzilla->user->can_edit_product($productid)
|| ThrowUserError("illegal_attachment_edit_bug",
{ bug_id => $bugid });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment