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 --- process_bug.cgi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index e14900245..d9970e7b7 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -156,7 +156,7 @@ foreach my $field ("estimated_time", "work_time", "remaining_time") { } } -if (UserInGroup(Bugzilla->params->{'timetrackinggroup'})) { +if (Bugzilla->user->in_group(Bugzilla->params->{'timetrackinggroup'})) { my $wk_time = $cgi->param('work_time'); if ($cgi->param('comment') =~ /^\s*$/ && $wk_time && $wk_time != 0) { ThrowUserError('comment_required'); @@ -592,7 +592,7 @@ umask(0); sub _remove_remaining_time { my $cgi = Bugzilla->cgi; - if (UserInGroup(Bugzilla->params->{'timetrackinggroup'})) { + if (Bugzilla->user->in_group(Bugzilla->params->{'timetrackinggroup'})) { if ( defined $cgi->param('remaining_time') && $cgi->param('remaining_time') > 0 ) { @@ -875,7 +875,7 @@ if (defined $cgi->param('id')) { if ( defined $cgi->param('id') && (Bugzilla->params->{"insidergroup"} - && UserInGroup(Bugzilla->params->{"insidergroup"})) ) + && Bugzilla->user->in_group(Bugzilla->params->{"insidergroup"})) ) { my $sth = $dbh->prepare('UPDATE longdescs SET isprivate = ? @@ -1191,7 +1191,7 @@ if ($::comma eq "" } # Process data for Time Tracking fields -if (UserInGroup(Bugzilla->params->{'timetrackinggroup'})) { +if (Bugzilla->user->in_group(Bugzilla->params->{'timetrackinggroup'})) { foreach my $field ("estimated_time", "remaining_time") { if (defined $cgi->param($field)) { my $er_time = trim($cgi->param($field)); @@ -1535,7 +1535,7 @@ foreach my $id (@idlist) { $timestamp = $dbh->selectrow_array(q{SELECT NOW()}); my $work_time; - if (UserInGroup(Bugzilla->params->{'timetrackinggroup'})) { + if (Bugzilla->user->in_group(Bugzilla->params->{'timetrackinggroup'})) { $work_time = $cgi->param('work_time'); if ($work_time) { # AppendComment (called below) can in theory raise an error, -- cgit v1.2.3-24-g4f1b