TC
Twill CMSβ€’2y ago
OscarGG

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
ifox
ifoxβ€’2y ago
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
OscarGG
OscarGGOPβ€’2y ago
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 πŸ™
ifox
ifoxβ€’2y ago
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?
OscarGG
OscarGGOPβ€’2y ago
Yes Some user can edit but not create, some can create, edit but not delete Like manage actions for each user
ifox
ifoxβ€’2y ago
For all modules, or different for each module?
OscarGG
OscarGGOPβ€’2y ago
different for each module
ifox
ifoxβ€’2y ago
ok so it sounds like you would need checkboxes for each individual permissions instead of radio buttons representing multiple permissions
OscarGG
OscarGGOPβ€’2y ago
yes, for more granular permissions
ifox
ifoxβ€’2y ago
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
OscarGG
OscarGGOPβ€’2y ago
Thank you very much for your support and quick response πŸ™
OscarGG
OscarGGOPβ€’2y ago
Ok, I'll try to contribute what I can 😁 , how should I approach the problem?

Did you find this page helpful?