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 <LpSolit@gmail.com> r=kevin.benton a=LpSolit

This commit is contained in:
lpsolit%gmail.com 2007-09-20 21:23:44 +00:00
Родитель c8719373b3
Коммит 3a604e6d61
1 изменённых файлов: 9 добавлений и 6 удалений

Просмотреть файл

@ -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