diff --git a/src/Security/Voter/SignalementVoter.php b/src/Security/Voter/SignalementVoter.php index bc3986e70..c5d4824ca 100755 --- a/src/Security/Voter/SignalementVoter.php +++ b/src/Security/Voter/SignalementVoter.php @@ -74,6 +74,7 @@ protected function voteOnAttribute(string $attribute, $subject, TokenInterface $ self::DELETE => $this->canDelete($subject, $user), self::EDIT => $this->canEdit($subject, $user), self::VIEW => $this->canView($subject, $user), + self::USAGER_EDIT => $this->canUsagerEdit($subject), default => false, }; }