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?
ifox
ifoxβ€’96d 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
OscarGGβ€’96d 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β€’96d 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
OscarGGβ€’96d ago
Yes Some user can edit but not create, some can create, edit but not delete Like manage actions for each user
ifox
ifoxβ€’96d ago
For all modules, or different for each module?
OscarGG
OscarGGβ€’96d ago
different for each module
ifox
ifoxβ€’96d ago
ok so it sounds like you would need checkboxes for each individual permissions instead of radio buttons representing multiple permissions
OscarGG
OscarGGβ€’96d ago
yes, for more granular permissions
ifox
ifoxβ€’96d 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
OscarGGβ€’96d ago
Thank you very much for your support and quick response πŸ™
OscarGG
OscarGGβ€’96d 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
More Posts
Drag and drop issueHello, any idea how to achive DnD working on modules list. Problem is in that when you go below limiFile library 404 errorHello, I'm encountering issues with the file library. When I upload a file, such as a .txt file, it'InlineRepeater deleting data on related Model entriesI'm using an InlineRepeater to add relations with pivot data between two Repositories. The relations"astrotomic/laravel-translatable" n+1 queriesI've got a package issue which is composer required by twill. 800+ queries on a model only getting Repeaters and Blockeditor won't work with media library.I saw the pst regarding JSON repeaters. So I switched to the block editor for the content that NEEDSTag Field on Block not Displaying Saved TagsHello. I am using the Tag Field in a block, the tags are being saved correctly, but the field is cFile link in view issueHi everyone i'm trying to render a file in blade view bug seem difficult to me how can i render linIssue using repository methods??? Twill 3Can someone please provide any support for the following error: Declaration of App\Repositories\PostHow can I make sure my assets are loaded correctly on a subdomain?I have a site for example website.nl and a twill installation on website.nl/subsite Now when I go tI can't see any images in twill media library.Hello, everyone! I have installed twill and tried to upload a image to media library. However, I amDatePicker ExceptionI'm getting an unexpected error while using a pretty simple DatePicker in my sidebar form. `UndefinSome fresh vibes would be nice :))Would love to hear some global announcement about twill cms this year and where it's heading @ifox .Edit defaultOrders in controllerWhat would be the most correct way to edit? $this->defaultOrders of ModuleController in my controlleVue2 EOL Plans?We're upgrading our application and generally upgrading our setup in preparation for the Vue2 EOL atRoute [admin.password.reset.link] not defined on upgrade from 2.x to 3Hey folks, I followed the upgrade guide step by step successfully, but when I try to visit the adminTwicpics & fit=cropApparently fit=crop is automatically added to the url, also when using Twicpics as image service. HoCan anyone help me get a single image/media field working within a json repeater ?I've detailed the issue here: https://github.com/area17/twill/discussions/2358DatePicker problemHi! sorry, what s wrong with my setup .... Just installed a fresh laravel app, with newest twill 3Admin api requests blocked for mixed-contentThis is an odd one and happening in a single environment (which unfortunately is production) . I knoI'm lookig for the DNS Settings of my website. Can anybody help me please?The person who made my website is not available and i need to access my dns settings. Thanks!