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