diff options
author | travis%sedsystems.ca <> | 2005-03-10 01:18:03 +0100 |
---|---|---|
committer | travis%sedsystems.ca <> | 2005-03-10 01:18:03 +0100 |
commit | 672d71471ee2ddae6005a9259789899c41264823 (patch) | |
tree | aac906cd42b2873fca45baeff2a1100b321b70ac /doeditparams.cgi | |
parent | 82bc36a9ccc7a9a0808c2d4c0e8b7d44eb1e63dd (diff) | |
download | bugzilla-672d71471ee2ddae6005a9259789899c41264823.tar.gz bugzilla-672d71471ee2ddae6005a9259789899c41264823.tar.xz |
Bug 282574 : use the new "auth_failure" error message for all authentication failures
Patch by Frederic Buclin <LpSolit@gmail.com> r=travis, wurblzap a=myk
Diffstat (limited to 'doeditparams.cgi')
-rwxr-xr-x | doeditparams.cgi | 10 |
1 files changed, 4 insertions, 6 deletions
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 "<h1>Sorry, you aren't a member of the 'tweakparams' group.</h1>\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"); |