]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 312773 attachment.cgi is broken due to bug 309681
authorbugreport%peshkin.net <>
Tue, 18 Oct 2005 10:26:13 +0000 (10:26 +0000)
committerbugreport%peshkin.net <>
Tue, 18 Oct 2005 10:26:13 +0000 (10:26 +0000)
Patch by FrÃ\83©dÃ\83©ric Buclin <LpSolit@gmail.com>
r=joel, a=justdave

attachment.cgi

index eafb31ea5148aeef5cb89c3e9ca10529a10ccdcf..6670e6325a1aae75bdf4dc3bd88e10cc1032ca53 100755 (executable)
@@ -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 });
 }