Open kamil-jakubowski opened 10 years ago
could you please fork SE and plug the bundle and reproduce the problem in your fork? That will easy for taking a look :baby: thanks
Can you check if this is fixed in dev-master. I think it should be because of fcbf5276737d8d6d76002b210b3ae8c9809040c0
@Danez i will take a stab, but just curious it would be a good idea to create a sandbox for this setup, thoughts? so to test, reproduce stuff and show good practices integration
:baby:
IamPersistent\MongoDBAclBundle\Security\Acl\MutableAclProvider::deleteAcl($objectIdentity) removes all object identities related with deleting ACL from acl_oid collection, but does not remove entries from acl_entry.
I wanted to write a function that rebuild my applications ACLs for chosen entities. (So delete all object and class-scope ACL entries, and insert a new ones). Here is my test code:
I've cleared manually both mongo collections and run the function. That is the result:
So everything was fine. Three identity objects, three entries.
But after second call of the function:
There was 6 entries and 3 objects. So there were left 3 acl-entries which are pointing on not-existing acl-identities:
I think this is a bug, but I can be wrong. So please tell me if I'm doing something wrong.