summaryrefslogtreecommitdiffstats
path: root/editkeywords.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editkeywords.cgi')
-rwxr-xr-xeditkeywords.cgi9
1 files changed, 4 insertions, 5 deletions
diff --git a/editkeywords.cgi b/editkeywords.cgi
index d46476dfa..9c835e8b7 100755
--- a/editkeywords.cgi
+++ b/editkeywords.cgi
@@ -58,11 +58,10 @@ Bugzilla->login(LOGIN_REQUIRED);
print Bugzilla->cgi->header();
-unless (UserInGroup("editkeywords")) {
- ThrowUserError("keyword_access_denied");
- exit;
-}
-
+UserInGroup("editkeywords")
+ || ThrowUserError("auth_failure", {group => "editkeywords",
+ action => "edit",
+ object => "keywords"});
my $action = trim($cgi->param('action') || '');
$vars->{'action'} = $action;