Disabled defaults in controller based on user RoleGroup
I want to disable, create, edit or delete actions according to user RoleGroup or there is another way to achieve this with permissions?
12 Replies
Hi @OscarGG you can create a role in the CMS and only give that role "can view" permission for each module. Make sure to add all your modules to the permissions configuration
Hi @ifox, ok, but in my app some users can edit, other create and edit, and a few ones create, edit and delete
Thanks for your support, btw π
We have view, edit (view + create + edit) and manage (view + create + edit + delete + manage permissions)
So it seems like we are missing something that would let users edit but not create for your use case?
Yes
Some user can edit but not create, some can create, edit but not delete
Like manage actions for each user
For all modules, or different for each module?
different for each module
ok so it sounds like you would need checkboxes for each individual permissions instead of radio buttons representing multiple permissions
yes, for more granular permissions
I'll add this to the roadmap. If you are looking to implement this before we get to it, I'm happy to share more details about what it would take
Thank you very much for your support and quick response π
Ok, I'll try to contribute what I can π , how should I approach the problem?