|
@@ -97,10 +97,12 @@ class OwnerVoter implements VoterInterface
|
|
|
*/
|
|
|
public function vote(TokenInterface $token, $object, array $attributes)
|
|
|
{
|
|
|
+
|
|
|
// me dice si soporta la case
|
|
|
if (!$this->supportsClass($object)) {
|
|
|
return VoterInterface::ACCESS_ABSTAIN;
|
|
|
}
|
|
|
+
|
|
|
// verifico si se pasaron los permisos
|
|
|
if (count($attributes) == 0) {
|
|
|
return VoterInterface::ACCESS_DENIED;
|