This commit is contained in:
2022-04-27 14:51:37 +02:00
parent 467ae5f474
commit 9244040d7b
2 changed files with 2 additions and 1 deletions

View File

@@ -41,8 +41,10 @@ class AccompanyingPeriodCommentVoter extends Voter
switch ($attribute) {
case self::EDIT:
return $this->security->isGranted(AccompanyingPeriodVoter::EDIT, $subject->getAccompanyingPeriod());
case self::DELETE:
return $this->security->isGranted(AccompanyingPeriodVoter::EDIT, $subject->getAccompanyingPeriod());
default:
throw new UnexpectedValueException("This attribute {$attribute} is not supported");
}