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