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 /attachment.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 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/attachment.cgi b/attachment.cgi index 7292f014d..70cad865c 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -170,7 +170,7 @@ sub validateID ValidateBugID($bugid); if ($isprivate && Bugzilla->params->{"insidergroup"}) { - UserInGroup(Bugzilla->params->{"insidergroup"}) + Bugzilla->user->in_group(Bugzilla->params->{"insidergroup"}) || ThrowUserError("auth_failure", {action => "access", object => "attachment"}); } @@ -398,7 +398,7 @@ sub viewall my $dbh = Bugzilla->dbh; if ( Bugzilla->params->{"insidergroup"} - && !UserInGroup(Bugzilla->params->{"insidergroup"}) ) + && !Bugzilla->user->in_group(Bugzilla->params->{"insidergroup"}) ) { $privacy = "AND isprivate < 1 "; } @@ -450,7 +450,7 @@ sub enter # Retrieve the attachments the user can edit from the database and write # them into an array of hashes where each hash represents one attachment. my $canEdit = ""; - if (!UserInGroup("editbugs")) { + if (!Bugzilla->user->in_group("editbugs")) { $canEdit = "AND submitter_id = " . Bugzilla->user->id; } my $attachments = $dbh->selectall_arrayref( @@ -517,7 +517,7 @@ sub insert # Assign the bug to the user, if they are allowed to take it my $owner = ""; - if ($cgi->param('takebug') && UserInGroup("editbugs")) { + if ($cgi->param('takebug') && Bugzilla->user->in_group("editbugs")) { my @fields = ("assigned_to", "bug_status", "resolution", "everconfirmed", "login_name"); |