Commit 222ab62a authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 396934: When classifications are in use, editproducts.cgi displays "Add…

Bug 396934: When classifications are in use, editproducts.cgi displays "Add product" to users that can't add products - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=kevin.benton a=LpSolit
parent 5c715f15
...@@ -49,15 +49,18 @@ ...@@ -49,15 +49,18 @@
name => "product_count" name => "product_count"
align => "right" align => "right"
heading => "Product Count" 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 [% PROCESS admin/table.html.tmpl
columns = columns columns = columns
data = classifications data = classifications
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment