summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2005-10-18 12:26:13 +0200
committerbugreport%peshkin.net <>2005-10-18 12:26:13 +0200
commit59ef7920a7efaba7cf0e5b55eb85761b59c8aaa7 (patch)
treeec012d2ccfc581e181ef7060b85feda3eb3cc294
parentacb05a7b78b9f36d19995631108f7d632f7711ad (diff)
downloadbugzilla-59ef7920a7efaba7cf0e5b55eb85761b59c8aaa7.tar.gz
bugzilla-59ef7920a7efaba7cf0e5b55eb85761b59c8aaa7.tar.xz
Bug 312773 attachment.cgi is broken due to bug 309681
Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel, a=justdave
-rwxr-xr-xattachment.cgi4
1 files 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 });
}