concerned parties, split in activity model persons associated or not

This commit is contained in:
2021-06-03 20:20:56 +02:00
parent 987815471c
commit 4ace2fef99
4 changed files with 39 additions and 6 deletions

View File

@@ -237,6 +237,11 @@ class ActivityController extends AbstractController
if (!$entity) {
throw $this->createNotFoundException('Unable to find Activity entity.');
}
if (null !== $accompanyingPeriod) {
$entity->personsAssociated = $entity->getPersonsAssociated();
$entity->personsNotAssociated = $entity->getPersonsNotAssociated();
}
// TODO revoir le Voter de Activity pour tenir compte qu'une activité peut appartenir a une période
// $this->denyAccessUnlessGranted('CHILL_ACTIVITY_SEE', $entity);