зеркало из https://github.com/mozilla/pjs.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 <LpSolit@gmail.com> r=kevin.benton a=LpSolit
This commit is contained in:
Родитель
c8719373b3
Коммит
3a604e6d61
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче