badge adapted+ menu entry + persistance of object fixed

This commit is contained in:
2021-11-19 09:46:24 +01:00
parent 57cf46a0af
commit fc8a766c25
7 changed files with 37 additions and 11 deletions

View File

@@ -78,11 +78,11 @@ class AccompanyingPeriodVoter extends AbstractChillVoter implements ProvideRole
return false;
}
if (AccompanyingPeriod::STEP_CLOSED === $subject->getStep()) {
if($this->security->isGranted(self::EDIT, $subject)) {
return false;
}
}
// if (AccompanyingPeriod::STEP_CLOSED === $subject->getStep()) {
// if($this->security->isGranted(self::EDIT, $subject)) {
// return false;
// }
// }
// if confidential, only the referent can see it
if ($subject->isConfidential()) {