aboutsummaryrefslogtreecommitdiffstats
path: root/editflagtypes.cgi
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2005-01-16 22:07:31 +0000
committerjocuri%softhome.net <>2005-01-16 22:07:31 +0000
commita1d58085aa7e7c2d3e1342b92c4887b0d22926f1 (patch)
tree282b82eb7d968d37e79f8926018dbe83d8f9b02f /editflagtypes.cgi
parent0d26bef4816cffaf4ccd068162130b1af6b32fdb (diff)
downloadbugs-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.tar
bugs-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.tar.gz
bugs-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.tar.bz2
bugs-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.tar.xz
bugs-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.zip
Patch for bug 265898: edit*.cgi files should all use ThrowUserError(); patch by Frédéric Buclin <LpSolit@gmail.com>, r=vladd, a=myk.
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);