F
Filament13mo ago
Masea

multiple resources with the same policy leads to unwanted action when used with roles and permission

hey, can i somehow override the can method inside resource class to make the resource use different policy without knowing its model? because i have multiple resources that are tied to the same model. as i see it, the current can method checks the policy tied to the model. but if you ask me, resource dependant policies make the most sense i am dealing with this because i am using the shield plugin. even though it displays and lets me edit the permissions on a resource basis, it doesnt matter in the end of the day because all those resources are tied to the same model -_-
1 Reply
Patrick Boivin
Patrick Boivin13mo ago
Hi @masea, have you found a solution? If I understand correctly, you want to have different permissions for each resource, even if they share the same model?