aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'editcomponents.cgi')
-rwxr-xr-xeditcomponents.cgi9
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