diff options
author | jocuri%softhome.net <> | 2005-01-16 22:07:31 +0000 |
---|---|---|
committer | jocuri%softhome.net <> | 2005-01-16 22:07:31 +0000 |
commit | a1d58085aa7e7c2d3e1342b92c4887b0d22926f1 (patch) | |
tree | 282b82eb7d968d37e79f8926018dbe83d8f9b02f /editparams.cgi | |
parent | Patch for bug 190226: templatize editversions.cgi; patch by GavinS <bugzilla@... (diff) | |
download | bugzilla-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.tar.gz bugzilla-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.tar.bz2 bugzilla-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.zip |
Patch for bug 265898: edit*.cgi files should all use ThrowUserError(); patch by Frédéric Buclin <LpSolit@gmail.com>, r=vladd, a=myk.
Diffstat (limited to 'editparams.cgi')
-rwxr-xr-x | editparams.cgi | 12 |
1 files changed, 4 insertions, 8 deletions
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 "<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("Edit parameters"); |