summaryrefslogtreecommitdiffstats
path: root/editflagtypes.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editflagtypes.cgi')
-rwxr-xr-xeditflagtypes.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi
index 4875b4f19..48074863a 100755
--- a/editflagtypes.cgi
+++ b/editflagtypes.cgi
@@ -42,8 +42,9 @@ use vars qw( $template $vars );
# Make sure the user is logged in and is an administrator.
Bugzilla->login(LOGIN_REQUIRED);
UserInGroup("editcomponents")
- || ThrowUserError("authorization_failure",
- { action => "administer flag types" });
+ || ThrowUserError("auth_failure", {group => "editcomponents",
+ action => "edit",
+ object => "flagtypes"});
# Suppress "used only once" warnings.
use vars qw(@legal_product @legal_components %components);