N
N
nemovalex2020-05-29 16:06:26
symfony
nemovalex, 2020-05-29 16:06:26

How to implement access only to your created entities in Sonata Admin?

The project uses ACL + SonataUserBundle. I need to implement access for the user only to those entities that are created by these users (auhtor_id). Thanks to the ACL, it turns out to allow or deny access to actions for the entire class (entity), but I still have not found a way or at least an example of how to implement what I described above. Can anyone give a hint or tell me where to dig?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question