summaryrefslogtreecommitdiffstats
path: root/doeditparams.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'doeditparams.cgi')
-rwxr-xr-xdoeditparams.cgi10
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");