diff options
Diffstat (limited to 'editgroups.cgi')
-rwxr-xr-x | editgroups.cgi | 5 |
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') || ''); |