Remove usage of deprecated Role class

This commit is contained in:
2023-08-31 17:08:18 +02:00
parent 76142c1264
commit 7c58880139
33 changed files with 55 additions and 80 deletions

View File

@@ -73,7 +73,7 @@ class ReportSearch extends AbstractSearch implements ContainerAwareInterface
//adding join
$qb->join('r.person', 'p');
$role = new Role('CHILL_REPORT_SEE');
$role = 'CHILL_REPORT_SEE';
$reachableCenters = $this->helper->getReachableCenters($this->user, $role);
$whereElement = $qb->expr()->orX();