我想在Symfony 2中使用ACL,并将它们加载到我的fixture中。下面的代码运行良好,但是如果我取消对array('myprivateroom', 'user1', 'view'),的注释,我会得到以下错误:
[Symfony\Component\Security\AclAclAlreadyExistsException] ObjectIdentity(1, Acme\RoomBundle\Entity\Room) is already associated with an ACL
我们正在运行下面提到的脚本来更改一堆ACL权限,当我们从一个环境迁移到另一个环境时,这些权限需要细化到文件级。 下面的脚本对文件夹/子文件夹有效,但当涉及到实际文件本身时似乎失败了。project\people\user1 -recurse | select-object -property fullname
# Get the ACLfor an existing folder