]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 405787: product_access_denied error tag defined twice in user-error.html.tmpl...
authorlpsolit%gmail.com <>
Thu, 29 Nov 2007 01:30:53 +0000 (01:30 +0000)
committerlpsolit%gmail.com <>
Thu, 29 Nov 2007 01:30:53 +0000 (01:30 +0000)
Bugzilla/User.pm
template/en/default/global/user-error.html.tmpl

index bd2a65ae0cc69aa3ab2d4a12c885906a19a59665..c983122e4d0db1568a5ff1082249f02e6959b1ab 100644 (file)
@@ -766,7 +766,7 @@ sub check_can_admin_product {
 
     ($self->in_group('editcomponents', $product->id)
        && $self->can_see_product($product->name))
-         || ThrowUserError('product_access_denied', {product => $product->name});
+         || ThrowUserError('product_admin_denied', {product => $product->name});
 
     # Return the validated product object.
     return $product;
index b0c087530a1dc06c13f6f9cf4f0685bc3e19aedc..2848ab5a495ac8ecbe1171a64f17acb339b2f760 100644 (file)
     create the milestone '[% defaultmilestone FILTER html %]'</a> before
     it can be made the default milestone for product '[% product FILTER html %]'.
 
-  [% ELSIF error == "product_access_denied" %]
+  [% ELSIF error == "product_admin_denied" %]
     [% title = "Product Access Denied" %]
     You are not allowed to edit properties of product '[% product FILTER html %]'.