]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 396934: When classifications are in use, editproducts.cgi displays "Add product...
authorlpsolit%gmail.com <>
Fri, 21 Sep 2007 02:25:15 +0000 (02:25 +0000)
committerlpsolit%gmail.com <>
Fri, 21 Sep 2007 02:25:15 +0000 (02:25 +0000)
template/en/default/admin/products/list-classifications.html.tmpl

index 444cb5204b99c8cac2162c7cf32c51587c5e95f7..53721702a018a32adf4b54eb4a10561acfd93070 100644 (file)
        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