summaryrefslogtreecommitdiffstats
path: root/quips.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-09-05 01:21:47 +0200
committermkanat%bugzilla.org <>2006-09-05 01:21:47 +0200
commit7d677ece7d55266f63924bc64cf2190df7c785a0 (patch)
tree7b666d17b8e5de6a8d1cd86c8a33030073acb9ef /quips.cgi
parentb63fd277afedfb5d101ce4700058609e81199855 (diff)
downloadbugzilla-7d677ece7d55266f63924bc64cf2190df7c785a0.tar.gz
bugzilla-7d677ece7d55266f63924bc64cf2190df7c785a0.tar.xz
Bug 283582: Remove UserInGroup in favor of Bugzilla->user->in_group
Patch By victory(_RSZ_) <bmo2007@rsz.jp> r=mkanat, a=myk
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"});