From 672d71471ee2ddae6005a9259789899c41264823 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Thu, 10 Mar 2005 00:18:03 +0000 Subject: Bug 282574 : use the new "auth_failure" error message for all authentication failures Patch by Frederic Buclin r=travis, wurblzap a=myk --- doeditparams.cgi | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'doeditparams.cgi') diff --git a/doeditparams.cgi b/doeditparams.cgi index 679bd74e3..099b98404 100755 --- a/doeditparams.cgi +++ b/doeditparams.cgi @@ -37,12 +37,10 @@ my $cgi = Bugzilla->cgi; print $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("Saving new parameters"); -- cgit v1.2.3-24-g4f1b