mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix error on creating an accompanying period work
This commit is contained in:
parent
0fa119c984
commit
b859283766
@ -66,6 +66,9 @@ class AccompanyingPeriodWorkVoter extends Voter
|
|||||||
case self::SEE:
|
case self::SEE:
|
||||||
return $this->security->isGranted(AccompanyingPeriodVoter::SEE_DETAILS, $subject);
|
return $this->security->isGranted(AccompanyingPeriodVoter::SEE_DETAILS, $subject);
|
||||||
|
|
||||||
|
case self::CREATE:
|
||||||
|
return $this->security->isGranted(AccompanyingPeriodVoter::CREATE, $subject);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new UnexpectedValueException(sprintf(
|
throw new UnexpectedValueException(sprintf(
|
||||||
"attribute {$attribute} is not supported on instance %s",
|
"attribute {$attribute} is not supported on instance %s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user