From 2f804027b44c5790d4547f3161bff28266150bef Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 10 Nov 2009 16:31:47 +0000 Subject: Bug 505039: Use $user->is_timetracker instead of $user->in_group(Bugzilla->params->{'timetrackinggroup'}) - Patch by XqueZme r/a=LpSolit --- config.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.cgi') diff --git a/config.cgi b/config.cgi index 2d8c2d92c..22e1dc78a 100755 --- a/config.cgi +++ b/config.cgi @@ -93,7 +93,7 @@ $vars->{'closed_status'} = \@closed_status; # Generate a list of fields that can be queried. my @fields = @{Bugzilla::Field->match({obsolete => 0})}; # Exclude fields the user cannot query. -if (!Bugzilla->user->in_group(Bugzilla->params->{'timetrackinggroup'})) { +if (!Bugzilla->user->is_timetracker) { @fields = grep { $_->name !~ /^(estimated_time|remaining_time|work_time|percentage_complete|deadline)$/ } @fields; } $vars->{'field'} = \@fields; -- cgit v1.2.3-24-g4f1b