diff options
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-x | editproducts.cgi | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/editproducts.cgi b/editproducts.cgi index e3af7986e..fcca94838 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -80,8 +80,9 @@ if (Bugzilla->params->{'useclassification'} && !$classification_name && !$product_name) { - $vars->{'classifications'} = $user->get_selectable_classifications; - + $vars->{'classifications'} = $user->in_group('editcomponents') ? + [Bugzilla::Classification::get_all_classifications] : $user->get_selectable_classifications; + $template->process("admin/products/list-classifications.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; @@ -231,7 +232,8 @@ if ($action eq 'delete') { $vars->{'no_edit_product_link'} = 1; if (Bugzilla->params->{'useclassification'}) { - $vars->{'classifications'} = $user->get_selectable_classifications; + $vars->{'classifications'} = $user->in_group('editcomponents') ? + [Bugzilla::Classification::get_all_classifications] : $user->get_selectable_classifications; $template->process("admin/products/list-classifications.html.tmpl", $vars) || ThrowTemplateError($template->error()); |