浏览代码

Use the right object for ACL validation

Pascal Burkhard 14 年之前
父节点
当前提交
43a5cb8188
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
     }
 
     /**