From 59ef7920a7efaba7cf0e5b55eb85761b59c8aaa7 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Tue, 18 Oct 2005 10:26:13 +0000 Subject: Bug 312773 attachment.cgi is broken due to bug 309681 Patch by Frédéric Buclin r=joel, a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attachment.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attachment.cgi b/attachment.cgi index eafb31ea5..6670e6325 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 }); } -- cgit v1.2.3-24-g4f1b