From 222ab62a0b82b2fed6ccb4fccac8e9b7e6bf862d Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 21 Sep 2007 02:23:44 +0000 Subject: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/admin/products/list-classifications.html.tmpl | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'template/en') diff --git a/template/en/default/admin/products/list-classifications.html.tmpl b/template/en/default/admin/products/list-classifications.html.tmpl index a91014e23..4eddad306 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 -- cgit v1.2.3-24-g4f1b