Toggle Allow Edit On and Off?
I have this default edit page. I have 2 type of user: admin and super admin
When opening this page, I want the superadmin to be able to edit (like currently in screenshoot), but admin can only view (remove delete, save changes, cancel). Is it possible, or do I need to create seperate page?
1 Reply
Would be better a view page https://filamentphp.com/docs/2.x/admin/resources/viewing-records
You can also use policies to control editing a record https://filamentphp.com/docs/2.x/admin/resources/getting-started#authorization