diff options
author | mkanat%bugzilla.org <> | 2006-09-05 01:21:47 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-09-05 01:21:47 +0200 |
commit | 7d677ece7d55266f63924bc64cf2190df7c785a0 (patch) | |
tree | 7b666d17b8e5de6a8d1cd86c8a33030073acb9ef /quips.cgi | |
parent | b63fd277afedfb5d101ce4700058609e81199855 (diff) | |
download | bugzilla-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-x | quips.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"}); |