Commit 2b5c1591 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 304588: Remove 'use Bugzilla::User' from DB.pm - Patch by Frédéric Buclin…

Bug 304588: Remove 'use Bugzilla::User' from DB.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
parent 3f7f64ad
......@@ -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')";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment