summaryrefslogtreecommitdiffstats
path: root/quips.cgi
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-01-28 17:30:29 +0100
committerDavid Lawrence <dlawrence@mozilla.com>2011-01-28 17:30:29 +0100
commit95bfc797b43bd7f1d8f45ea629aa6119b51e8a29 (patch)
treef49e5bd6afd287dc1185e0eab2780d52e586e5c8 /quips.cgi
parentf6142bf5bb569e67686f74cdfd959c79c7c7cb23 (diff)
downloadbugzilla-95bfc797b43bd7f1d8f45ea629aa6119b51e8a29.tar.gz
bugzilla-95bfc797b43bd7f1d8f45ea629aa6119b51e8a29.tar.xz
Bug 622080 - Change group which can moderate quips
r/a=mkanat
Diffstat (limited to 'quips.cgi')
-rwxr-xr-xquips.cgi10
1 files changed, 5 insertions, 5 deletions
diff --git a/quips.cgi b/quips.cgi
index 97993d488..74c0047a1 100755
--- a/quips.cgi
+++ b/quips.cgi
@@ -79,7 +79,7 @@ if ($action eq "add") {
check_hash_token($token, ['create-quips']);
# Add the quip
my $approved = (Bugzilla->params->{'quip_list_entry_control'} eq "open")
- || Bugzilla->user->in_group('admin') || 0;
+ || $user->in_group('bz_quip_moderators') || 0;
my $comment = $cgi->param("quip");
$comment || ThrowUserError("need_quip");
trick_taint($comment); # Used in a placeholder below
@@ -91,8 +91,8 @@ if ($action eq "add") {
}
if ($action eq 'approve') {
- $user->in_group('admin')
- || ThrowUserError("auth_failure", {group => "admin",
+ $user->in_group('bz_quip_moderators')
+ || ThrowUserError("auth_failure", {group => "bz_quip_moderators",
action => "approve",
object => "quips"});
@@ -131,8 +131,8 @@ if ($action eq 'approve') {
}
if ($action eq "delete") {
- Bugzilla->user->in_group("admin")
- || ThrowUserError("auth_failure", {group => "admin",
+ $user->in_group('bz_quip_moderators')
+ || ThrowUserError("auth_failure", {group => "bz_quip_moderators",
action => "delete",
object => "quips"});
my $quipid = $cgi->param("quipid");