aboutsummaryrefslogtreecommitdiffstats
path: root/config.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-11-10 16:31:47 +0000
committerlpsolit%gmail.com <>2009-11-10 16:31:47 +0000
commit2f804027b44c5790d4547f3161bff28266150bef (patch)
treea5d9fff8ab4b48d71bea0157bfa3f856fc437b7c /config.cgi
parentf7b1e5c5e27780f4bb1be7c9a44f1a91024473e4 (diff)
downloadbugs-2f804027b44c5790d4547f3161bff28266150bef.tar
bugs-2f804027b44c5790d4547f3161bff28266150bef.tar.gz
bugs-2f804027b44c5790d4547f3161bff28266150bef.tar.bz2
bugs-2f804027b44c5790d4547f3161bff28266150bef.tar.xz
bugs-2f804027b44c5790d4547f3161bff28266150bef.zip
Bug 505039: Use $user->is_timetracker instead of $user->in_group(Bugzilla->params->{'timetrackinggroup'}) - Patch by XqueZme <xquezme@gmail.com> r/a=LpSolit
Diffstat (limited to 'config.cgi')
-rwxr-xr-xconfig.cgi2
1 files changed, 1 insertions, 1 deletions
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;