mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
badge adapted+ menu entry + persistance of object fixed
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user