From: lpsolit%gmail.com <> Date: Fri, 21 Sep 2007 02:23:44 +0000 (+0000) Subject: Bug 396934: When classifications are in use, editproducts.cgi displays "Add product... X-Git-Tag: bugzilla-3.1.3~530 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=222ab62a0b82b2fed6ccb4fccac8e9b7e6bf862d;p=thirdparty%2Fbugzilla.git Bug 396934: When classifications are in use, editproducts.cgi displays "Add product" to users that can't add products - Patch by Frédéric Buclin r=kevin.benton a=LpSolit --- diff --git a/template/en/default/admin/products/list-classifications.html.tmpl b/template/en/default/admin/products/list-classifications.html.tmpl index a91014e23c..4eddad3060 100644 --- a/template/en/default/admin/products/list-classifications.html.tmpl +++ b/template/en/default/admin/products/list-classifications.html.tmpl @@ -49,15 +49,18 @@ name => "product_count" align => "right" heading => "Product Count" - }, - { - heading => "Action..." - content => "Add product" - contentlink => add_contentlink - }, + } ] %] +[% IF user.in_group('editcomponents') %] + [% columns.push({ + heading => "Action..." + content => "Add product" + contentlink => add_contentlink }) + %] +[% END %] + [% PROCESS admin/table.html.tmpl columns = columns data = classifications