respect customer visibility in project-overview report (#2804)

This commit is contained in:
Kevin Papst
2021-10-03 13:41:14 +02:00
committed by GitHub
parent 4bb9edb2b5
commit 6857d92c4f

View File

@@ -133,7 +133,9 @@ class ProjectStatisticService
$qb = $this->repository->createQueryBuilder('p');
$qb
->select('p')
->leftJoin('p.customer', 'c')
->andWhere($qb->expr()->eq('p.visible', true))
->andWhere($qb->expr()->eq('c.visible', true))
->andWhere(
$qb->expr()->andX(
$qb->expr()->orX(