From 222ab62a0b82b2fed6ccb4fccac8e9b7e6bf862d Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 21 Sep 2007 02:23:44 +0000 Subject: =?UTF-8?q?Bug=20396934:=20When=20classifications=20are=20in=20use?= =?UTF-8?q?,=20editproducts.cgi=20displays=20"Add=20product"=20to=20users?= =?UTF-8?q?=20that=20can't=20add=20products=20-=20Patch=20by=20Fr=C3=83?= =?UTF-8?q?=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r=3Dkev?= =?UTF-8?q?in.benton=20a=3DLpSolit?= 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(-) 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.1