diff --git a/Security/Authorization/EventVoter.php b/Security/Authorization/EventVoter.php index f3ef499f0..c41a200b1 100644 --- a/Security/Authorization/EventVoter.php +++ b/Security/Authorization/EventVoter.php @@ -91,7 +91,7 @@ class EventVoter extends AbstractChillVoter implements ProvideRoleHierarchyInter throw new \LogicException("You should associate a person with event " . "in order to check autorizations"); } - $person = $subject->getId(); // liaison event --> person + $person = $subject->getId(); // liaison event --> person } elseif ($subject instanceof Person) { $person = $subject;