I have recently been looking deeper into Sonata bundle and I am struggling a lot with the documentation and the demo. I installed the demo locally and have been working with it thus far.** Please forgive me if the questions are incomplete. I am struggling to learn to ask the right questions to find the answers I am looking for. And as I understand Symfony and Sonata better that is improving.[QUESTIONS]
- The demo implies all the permissions that can be set for the users only affect how users interact with the admin dashboard. But what confuses me is that the demo does not seem to demonstrate how non admin users interact with the system when they login.
- How do you add more roles? So that I can assign them to other users as they login and interact with the system normally.
- I see that the Admin bundle relies on this model class Admin. All of my users will not be admins, what is the design behind this Admin class?
- In the code for the twig templates I can see code the is checking 'if admin.hasRoute('export') and admin.isGranted("EXPORT")' to evaluate if the admin user has a given route and if that admin user has the export permission (which I cannot find under the roles section for a user).
- So where is the routes being set for a given user based on the permissions?
- Where can the EXPORT permission be set?
- Ultimately, I need to manage admin users and normal users and govern the permissions of each of those users. The permissions would regulate access to your CRUD operations like CREATE, VIEW, UPDATE, DELETE and maybe a few other ones. Furthermore, if there is a way to associate routes to a user based on permissions I can see that being very helpful as well. But I'm confused on what value the Admin and associated bundle provides.
- How do you leverage Sonata Admin bundle to do those things I just listed?
--
You received this message because you are subscribed to the Google Groups "sonata-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonata-users...@googlegroups.com.
To post to this group, send email to sonata...@googlegroups.com.
Visit this group at http://groups.google.com/group/sonata-users.
For more options, visit https://groups.google.com/groups/opt_out.
Cassiano Valle Tartari
MSc. Computer Engineer
Tel: +55.48.84474818
Email: fal...@cassianotartari.eng.br
Site: http://www.cassianotartari.eng.br