Browse Source

Merge branch 'master' of ssh://infra.flowdat.com:222/VendorSoftwareFlowdat3/OwnerVoter

Luciano Andrade 8 years ago
parent
commit
9ae7b65c59
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Security/OwnerVoter.php

+ 2 - 0
Security/OwnerVoter.php

@@ -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;