This commit is contained in:
Julien Fastré 2023-08-28 12:49:31 +02:00
parent ea9c21e021
commit c33330969c
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
4 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@ class EventSearch extends AbstractSearch
$orWhere = $qb->expr()->orX(); $orWhere = $qb->expr()->orX();
foreach ($reachableCenters as $center) { foreach ($reachableCenters as $center) {
$n = $n+1; $n = $n + 1;
$circles = $this->authorizationHelper->getReachableScopes( $circles = $this->authorizationHelper->getReachableScopes(
$this->security->getUser(), $this->security->getUser(),
'CHILL_EVENT_SEE', 'CHILL_EVENT_SEE',

View File

@ -167,7 +167,7 @@ final class PersonController extends AbstractController
{ {
$person = new Person(); $person = new Person();
$authorizedCenters =$this->authorizationHelper->getReachableCenters($this->getUser(), PersonVoter::CREATE); $authorizedCenters = $this->authorizationHelper->getReachableCenters($this->getUser(), PersonVoter::CREATE);
if (1 === count($authorizedCenters)) { if (1 === count($authorizedCenters)) {
$person->setCenter($authorizedCenters[0]); $person->setCenter($authorizedCenters[0]);

View File

@ -108,7 +108,7 @@ class AccompanyingPeriodContextTest extends KernelTestCase
): void { ): void {
$context = $this->buildContext(); $context = $this->buildContext();
$template = new DocGeneratorTemplate(); $template = new DocGeneratorTemplate();
$template->setName(["fr" =>"test"])->setContext(AccompanyingPeriodContext::class) $template->setName(["fr" => "test"])->setContext(AccompanyingPeriodContext::class)
->setDescription("description")->setActive(true) ->setDescription("description")->setActive(true)
->setOptions($options); ->setOptions($options);

View File

@ -102,7 +102,7 @@ final class PersonContextTest extends KernelTestCase
self::$container->get(ThirdPartyRepository::class) self::$container->get(ThirdPartyRepository::class)
); );
$template = new DocGeneratorTemplate(); $template = new DocGeneratorTemplate();
$template->setName(["fr" =>"test"])->setContext(AccompanyingPeriodContext::class) $template->setName(["fr" => "test"])->setContext(AccompanyingPeriodContext::class)
->setDescription("description")->setActive(true) ->setDescription("description")->setActive(true)
->setOptions($options); ->setOptions($options);