diff options
Diffstat (limited to 'editcomponents.cgi')
-rwxr-xr-x | editcomponents.cgi | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/editcomponents.cgi b/editcomponents.cgi index e2e471f34..7c1ac96ca 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -117,11 +117,10 @@ Bugzilla->login(LOGIN_REQUIRED); print Bugzilla->cgi->header(); -unless (UserInGroup("editcomponents")) { - ThrowUserError('auth_cant_edit_components'); - exit; -} - +UserInGroup("editcomponents") + || ThrowUserError("auth_failure", {group => "editcomponents", + action => "edit", + object => "components"}); # # often used variables |