summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-09-21 04:23:44 +0200
committerlpsolit%gmail.com <>2007-09-21 04:23:44 +0200
commit222ab62a0b82b2fed6ccb4fccac8e9b7e6bf862d (patch)
treebf9c6f02ddc4d57c9f11c7099f6825b4220369f3
parent5c715f1509c105f338f32c8f1d52861ea2299b23 (diff)
downloadbugzilla-222ab62a0b82b2fed6ccb4fccac8e9b7e6bf862d.tar.gz
bugzilla-222ab62a0b82b2fed6ccb4fccac8e9b7e6bf862d.tar.xz
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
-rw-r--r--template/en/default/admin/products/list-classifications.html.tmpl15
1 files 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