From: lpsolit%gmail.com <> Date: Thu, 29 Nov 2007 01:33:34 +0000 (+0000) Subject: Bug 405787: product_access_denied error tag defined twice in user-error.html.tmpl... X-Git-Tag: bugzilla-3.0.3~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=224577cfcb3a28cfcd2f1a283e222d801e392b94;p=thirdparty%2Fbugzilla.git Bug 405787: product_access_denied error tag defined twice in user-error.html.tmpl - Patch by Frédéric Buclin r/a=mkanat --- diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index b8f0ecedbd..003337fe41 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -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; diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 5801396422..bbd54bacac 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -1201,7 +1201,7 @@ create the milestone '[% defaultmilestone FILTER html %]' 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 %]'.