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