From f681e50167da12e3e3cb72eff333a5b2f823c3a8 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Fri, 22 Apr 2022 17:14:27 +0200 Subject: [PATCH] role added to voter, but no check yet --- .../Security/Authorization/AccompanyingPeriodVoter.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodVoter.php b/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodVoter.php index 5f7b69663..220bddd34 100644 --- a/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodVoter.php +++ b/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodVoter.php @@ -181,6 +181,10 @@ class AccompanyingPeriodVoter extends AbstractChillVoter implements ProvideRoleH return false; } + // if (self::REASSIGN_BULK === $attribute) { + + // } + // if confidential, only the referent can see it if ($subject->isConfidential()) { return $token->getUser() === $subject->getUser();