From: lpsolit%gmail.com <> Date: Fri, 21 Sep 2007 02:25:15 +0000 (+0000) Subject: Bug 396934: When classifications are in use, editproducts.cgi displays "Add product... X-Git-Tag: bugzilla-3.0.3~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f94ec44b5ba5f24a9c6a666cf20d54dd2916ac90;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 444cb5204b..53721702a0 100644 --- a/template/en/default/admin/products/list-classifications.html.tmpl +++ b/template/en/default/admin/products/list-classifications.html.tmpl @@ -50,15 +50,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