Explorar o código

Use the right object for ACL validation

Pascal Burkhard %!s(int64=14) %!d(string=hai) anos
pai
achega
43a5cb8188
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Security/Handler/AclSecurityHandler.php

+ 1 - 1
Security/Handler/AclSecurityHandler.php

@@ -26,7 +26,7 @@ class AclSecurityHandler implements SecurityHandlerInterface
      */
     public function isGranted($attributes, $object = null)
     {
-        return $this->securityContext->isGranted($attributes, $this);
+        return $this->securityContext->isGranted($attributes, $object);
     }
 
     /**