Pārlūkot izejas kodu

Actualizar 'Security/OwnerVoter.php'

Aparente loop
Luciano Andrade 8 gadi atpakaļ
vecāks
revīzija
f0e736d479
1 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 5 5
      Security/OwnerVoter.php

+ 5 - 5
Security/OwnerVoter.php

@@ -118,11 +118,11 @@ class OwnerVoter extends Voter
     {
         // Si tengo el rol ROLE_SUPER_ADMIN, puedo hacer cualquier cosa
         // DESCOMENTAR ESTO PARA EL ROLE_SUPER_ADMIN
-        if ($this->decisionManager != null &&
-            $this->decisionManager->decide($token, array('ROLE_SUPER_ADMIN'))
-        ) {
-            return VoterInterface::ACCESS_GRANTED;
-        }
+        //if ($this->decisionManager != null &&
+        //    $this->decisionManager->decide($token, array('ROLE_SUPER_ADMIN'))
+        //) {
+        //    return VoterInterface::ACCESS_GRANTED;
+        //}
         // verifico si se pasaron los permisos
         if (count($attributes) == 0) {
             return VoterInterface::ACCESS_DENIED;