From 2b5c15916a85aef50814a96c0112d9b2ba910b3e Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 14 Aug 2005 23:46:04 +0000 Subject: =?UTF-8?q?Bug=20304588:=20Remove=20'use=20Bugzilla::User'=20from?= =?UTF-8?q?=20DB.pm=20-=20Patch=20by=20Fr=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dmkanat=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/DB.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index 67cf4ae9c..6ec377cd7 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -50,7 +50,6 @@ use Bugzilla::Config qw(:DEFAULT :db); use Bugzilla::Util; use Bugzilla::Error; use Bugzilla::DB::Schema; -use Bugzilla::User; ##################################################################### # Constants @@ -299,7 +298,7 @@ sub bz_get_field_defs { my ($self) = @_; my $extra = ""; - if (!UserInGroup(Param('timetrackinggroup'))) { + if (!Bugzilla->user->in_group(Param('timetrackinggroup'))) { $extra = "AND name NOT IN ('estimated_time', 'remaining_time', " . "'work_time', 'percentage_complete', 'deadline')"; } -- cgit v1.2.1