]> 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:33:34 +0000 (01:33 +0000)
committerlpsolit%gmail.com <>
Thu, 29 Nov 2007 01:33:34 +0000 (01:33 +0000)
Bugzilla/User.pm
template/en/default/global/user-error.html.tmpl

index b8f0ecedbda013afaaa5c5bc830bbc918eac85a9..003337fe413c8e0fce6da9832dff75a70f4b1d7b 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 5801396422ae4ce73a3ac46669ec6b09d01b1d0d..bbd54bacaccbba2eba9447640088fd9122d2dab8 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 %]'.