From a1d58085aa7e7c2d3e1342b92c4887b0d22926f1 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Sun, 16 Jan 2005 22:07:31 +0000 Subject: Patch for bug 265898: edit*.cgi files should all use ThrowUserError(); patch by Frédéric Buclin , r=vladd, a=myk. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editflagtypes.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'editflagtypes.cgi') diff --git a/editflagtypes.cgi b/editflagtypes.cgi index 4875b4f19..48074863a 100755 --- a/editflagtypes.cgi +++ b/editflagtypes.cgi @@ -42,8 +42,9 @@ use vars qw( $template $vars ); # Make sure the user is logged in and is an administrator. Bugzilla->login(LOGIN_REQUIRED); UserInGroup("editcomponents") - || ThrowUserError("authorization_failure", - { action => "administer flag types" }); + || ThrowUserError("auth_failure", {group => "editcomponents", + action => "edit", + object => "flagtypes"}); # Suppress "used only once" warnings. use vars qw(@legal_product @legal_components %components); -- cgit v1.2.3-24-g4f1b