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 --- editkeywords.cgi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'editkeywords.cgi') diff --git a/editkeywords.cgi b/editkeywords.cgi index d46476dfa..9c835e8b7 100755 --- a/editkeywords.cgi +++ b/editkeywords.cgi @@ -58,11 +58,10 @@ Bugzilla->login(LOGIN_REQUIRED); print Bugzilla->cgi->header(); -unless (UserInGroup("editkeywords")) { - ThrowUserError("keyword_access_denied"); - exit; -} - +UserInGroup("editkeywords") + || ThrowUserError("auth_failure", {group => "editkeywords", + action => "edit", + object => "keywords"}); my $action = trim($cgi->param('action') || ''); $vars->{'action'} = $action; -- cgit v1.2.3-24-g4f1b