From 99caa596b23484e0f87905870c88f14ed3675ade Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" Date: Thu, 27 Jan 2005 19:50:25 +0000 Subject: [PATCH] Bug 278650 : editversions.cgi still uses "auth_cant_edit_versions" Patch by Frederic Buclin r=vladd a=justdave --- webtools/bugzilla/editversions.cgi | 9 ++++----- .../template/en/default/global/user-error.html.tmpl | 5 ----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/webtools/bugzilla/editversions.cgi b/webtools/bugzilla/editversions.cgi index 613f2468af8..e4cf47e2a10 100755 --- a/webtools/bugzilla/editversions.cgi +++ b/webtools/bugzilla/editversions.cgi @@ -115,11 +115,10 @@ Bugzilla->login(LOGIN_REQUIRED); print Bugzilla->cgi->header(); -unless (UserInGroup("editcomponents")) { - ThrowUserError('auth_cant_edit_versions'); - exit; -} - +UserInGroup("editcomponents") + || ThrowUserError("auth_failure", {group => "editcomponents", + action => "edit", + object => "versions"}); # # often used variables diff --git a/webtools/bugzilla/template/en/default/global/user-error.html.tmpl b/webtools/bugzilla/template/en/default/global/user-error.html.tmpl index 5ea789a2fbf..e849e78277c 100644 --- a/webtools/bugzilla/template/en/default/global/user-error.html.tmpl +++ b/webtools/bugzilla/template/en/default/global/user-error.html.tmpl @@ -218,11 +218,6 @@ Sorry, but you can not delete the default classification, '[% name FILTER html %]'. - [% ELSIF error == "auth_cant_edit_versions" %] - [% title = "Access Denied" %] - Sorry, you aren't a member of the 'editcomponents' group, and so - you aren't allowed to add, modify or delete versions. - [% ELSIF error == "component_already_exists" %] [% title = "Component Already Exists" %] A component with the name '[% name FILTER html %]' already exists.