This commit is contained in:
Julien Fastré 2022-03-30 16:43:16 +02:00
parent 36b1f05524
commit c477996acf
2 changed files with 5 additions and 5 deletions

View File

@ -98,7 +98,7 @@ class PersonMenuBuilder implements LocalMenuBuilderInterface
->setExtras([ ->setExtras([
'order' => 99999, 'order' => 99999,
]); ]);
*/ */
if ( if (
'visible' === $this->showAccompanyingPeriod 'visible' === $this->showAccompanyingPeriod
&& $this->security->isGranted(AccompanyingPeriodVoter::SEE, $parameters['person']) && $this->security->isGranted(AccompanyingPeriodVoter::SEE, $parameters['person'])

View File

@ -114,10 +114,10 @@ class ThirdPartyApiSearch implements SearchApiInterface
...$pertinenceArgs ...$pertinenceArgs
)) ))
->andWhereClause(implode(' AND ', $wheres) ->andWhereClause(implode(' AND ', $wheres)
.' AND tparty.active IS TRUE and (parent.active IS TRUE OR parent IS NULL)', array_merge( . ' AND tparty.active IS TRUE and (parent.active IS TRUE OR parent IS NULL)', array_merge(
[], [],
...$whereArgs ...$whereArgs
)); ));
return $query; return $query;
} }