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 --- editparams.cgi | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'editparams.cgi') diff --git a/editparams.cgi b/editparams.cgi index 8ffd76a08..5d7ff9178 100755 --- a/editparams.cgi +++ b/editparams.cgi @@ -34,14 +34,10 @@ Bugzilla->login(LOGIN_REQUIRED); print Bugzilla->cgi->header(); -if (!UserInGroup("tweakparams")) { - print "

Sorry, you aren't a member of the 'tweakparams' group.

\n"; - print "And so, you aren't allowed to edit the parameters.\n"; - PutFooter(); - exit; -} - - +UserInGroup("tweakparams") + || ThrowUserError("auth_failure", {group => "tweakparams", + action => "modify", + object => "parameters"}); PutHeader("Edit parameters"); -- cgit v1.2.3-24-g4f1b