From 7d677ece7d55266f63924bc64cf2190df7c785a0 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 4 Sep 2006 23:21:47 +0000 Subject: Bug 283582: Remove UserInGroup in favor of Bugzilla->user->in_group Patch By victory(_RSZ_) r=mkanat, a=myk --- quips.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'quips.cgi') 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"}); -- cgit v1.2.3-24-g4f1b