From: bugreport%peshkin.net <> Date: Tue, 18 Oct 2005 10:26:13 +0000 (+0000) Subject: Bug 312773 attachment.cgi is broken due to bug 309681 X-Git-Tag: bugzilla-2.22rc1~214 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59ef7920a7efaba7cf0e5b55eb85761b59c8aaa7;p=thirdparty%2Fbugzilla.git Bug 312773 attachment.cgi is broken due to bug 309681 Patch by Frédéric Buclin r=joel, a=justdave --- diff --git a/attachment.cgi b/attachment.cgi index eafb31ea51..6670e6325a 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -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 }); }