summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-15 01:46:04 +0200
committerlpsolit%gmail.com <>2005-08-15 01:46:04 +0200
commit2b5c15916a85aef50814a96c0112d9b2ba910b3e (patch)
tree941fde905f6289b0ef54cdbc8c506fbab1b2c489
parent3f7f64ada2722579bea1b437576f7dd6f1b6788e (diff)
downloadbugzilla-2b5c15916a85aef50814a96c0112d9b2ba910b3e.tar.gz
bugzilla-2b5c15916a85aef50814a96c0112d9b2ba910b3e.tar.xz
Bug 304588: Remove 'use Bugzilla::User' from DB.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
-rw-r--r--Bugzilla/DB.pm3
1 files changed, 1 insertions, 2 deletions
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')";
}