Browse Source

Use the right object for ACL validation

Pascal Burkhard 14 years ago
parent
commit
43a5cb8188
1 changed files with 1 additions and 1 deletions
  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)
     public function isGranted($attributes, $object = null)
     {
     {
-        return $this->securityContext->isGranted($attributes, $this);
+        return $this->securityContext->isGranted($attributes, $object);
     }
     }
 
 
     /**
     /**