aboutsummaryrefslogtreecommitdiff
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 /editwhines.cgi
parentPatch for bug 190226: templatize editversions.cgi; patch by GavinS <bugzilla@... (diff)
downloadbugzilla-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.tar.gz
bugzilla-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.tar.bz2
bugzilla-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 'editwhines.cgi')
-rwxr-xr-xeditwhines.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/editwhines.cgi b/editwhines.cgi
index 5610f7eaa..8c7c269e8 100755
--- a/editwhines.cgi
+++ b/editwhines.cgi
@@ -72,7 +72,10 @@ my $sth; # database statement handle
my $events = get_events($userid);
# First see if this user may use whines
-ThrowUserError('whine_access_denied') unless (UserInGroup('bz_canusewhines'));
+UserInGroup("bz_canusewhines")
+ || ThrowUserError("auth_failure", {group => "bz_canusewhines",
+ action => "schedule",
+ object => "reports"});
# May this user send mail to other users?
my $can_mail_others = UserInGroup('bz_canusewhineatothers');