summaryrefslogtreecommitdiffstats
path: root/quips.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'quips.cgi')
-rwxr-xr-xquips.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/quips.cgi b/quips.cgi
index 06b6b0dd8..bb0e5afff 100755
--- a/quips.cgi
+++ b/quips.cgi
@@ -76,7 +76,7 @@ if ($action eq "add") {
# Add the quip
my $approved = (Bugzilla->params->{'quip_list_entry_control'} eq "open")
- || UserInGroup('admin') || 0;
+ || Bugzilla->user->in_group('admin') || 0;
my $comment = $cgi->param("quip");
$comment || ThrowUserError("need_quip");
trick_taint($comment); # Used in a placeholder below
@@ -115,7 +115,7 @@ if ($action eq 'approve') {
}
if ($action eq "delete") {
- UserInGroup("admin")
+ Bugzilla->user->in_group("admin")
|| ThrowUserError("auth_failure", {group => "admin",
action => "delete",
object => "quips"});