]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 309952: (CVE-2010-1204) [SECURITY] Make boolean chart searches with time
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Thu, 24 Jun 2010 17:06:25 +0000 (10:06 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Thu, 24 Jun 2010 17:06:25 +0000 (10:06 -0700)
tracking fields no longer work for everybody
r=LpSolit, a=mkanat

Bugzilla/Search.pm

index a764babe43c905d6cbdee168eb19d9200f2596b2..24adf009482ca40d8be8a760a02bda9d5ac94e84 100644 (file)
@@ -870,6 +870,12 @@ sub init {
     my %chartfields = @{$dbh->selectcol_arrayref(
         q{SELECT name, id FROM fielddefs}, { Columns=>[1,2] })};
 
+    if (!$user->is_timetracker) {
+        foreach my $tt_field (TIMETRACKING_FIELDS) {
+            delete $chartfields{$tt_field};
+        }
+    }
+
     my ($sequence, $chartid);
     $row = 0;
     for ($chart=-1 ;