This commit is contained in:
Tchama 2019-01-25 13:45:34 +01:00
parent a10d48642f
commit 2d295d8e43

View File

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