summaryrefslogtreecommitdiffstats
path: root/editgroups.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editgroups.cgi')
-rwxr-xr-xeditgroups.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/editgroups.cgi b/editgroups.cgi
index bc22d518e..3eca512f9 100755
--- a/editgroups.cgi
+++ b/editgroups.cgi
@@ -40,7 +40,10 @@ Bugzilla->login(LOGIN_REQUIRED);
print Bugzilla->cgi->header();
-ThrowUserError("auth_cant_edit_groups") unless UserInGroup("creategroups");
+UserInGroup("creategroups")
+ || ThrowUserError("auth_failure", {group => "creategroups",
+ action => "edit",
+ object => "groups"});
my $action = trim($cgi->param('action') || '');