summaryrefslogtreecommitdiffstats
path: root/editmilestones.cgi
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2005-01-16 23:07:31 +0100
committerjocuri%softhome.net <>2005-01-16 23:07:31 +0100
commita1d58085aa7e7c2d3e1342b92c4887b0d22926f1 (patch)
tree282b82eb7d968d37e79f8926018dbe83d8f9b02f /editmilestones.cgi
parent0d26bef4816cffaf4ccd068162130b1af6b32fdb (diff)
downloadbugzilla-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.tar.gz
bugzilla-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.tar.xz
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 'editmilestones.cgi')
-rwxr-xr-xeditmilestones.cgi9
1 files changed, 4 insertions, 5 deletions
diff --git a/editmilestones.cgi b/editmilestones.cgi
index ad07b2d61..160385104 100755
--- a/editmilestones.cgi
+++ b/editmilestones.cgi
@@ -125,11 +125,10 @@ Bugzilla->login(LOGIN_REQUIRED);
print Bugzilla->cgi->header();
-unless (UserInGroup("editcomponents")) {
- ThrowUserError('auth_cant_edit_milestones');
- exit;
-}
-
+UserInGroup("editcomponents")
+ || ThrowUserError("auth_failure", {group => "editcomponents",
+ action => "edit",
+ object => "milestones"});
#
# often used variables