Symfony2: how to get all entities of one type which are marked with "EDIT" ACL permission?
Asked Answered
P

1

71

Can someone tell me how to get all entities of one type which are marked with "EDIT" ACL permission?

I would like to build a query with the Doctrine EntityManager.

Pagandom answered 1/6, 2011 at 12:39 Comment(2)
It is related to this question about filtering a list of domain objects based on the access control entriesConnective
Can't be answered without details about your ACL. Is your control list in your database?Resonance
B
1

I don't believe there's a default way of doing this. What you could do is to write your own service that adds a Filter to your Doctrine DQL queries.

For more info, see:

Hope this helps!

Bencher answered 3/4, 2020 at 5:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.