Commit 38266465 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 405787: product_access_denied error tag defined twice in…

Bug 405787: product_access_denied error tag defined twice in user-error.html.tmpl - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 034e35d4
...@@ -766,7 +766,7 @@ sub check_can_admin_product { ...@@ -766,7 +766,7 @@ sub check_can_admin_product {
($self->in_group('editcomponents', $product->id) ($self->in_group('editcomponents', $product->id)
&& $self->can_see_product($product->name)) && $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 the validated product object.
return $product; return $product;
......
...@@ -1255,7 +1255,7 @@ ...@@ -1255,7 +1255,7 @@
create the milestone '[% defaultmilestone FILTER html %]'</a> before create the milestone '[% defaultmilestone FILTER html %]'</a> before
it can be made the default milestone for product '[% product FILTER html %]'. 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" %] [% title = "Product Access Denied" %]
You are not allowed to edit properties of product '[% product FILTER html %]'. You are not allowed to edit properties of product '[% product FILTER html %]'.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment