F
Filament10mo ago
sven

Authorize Resouces not via model policies

Hey, I have a Model / Ressource that has two different Filament ressources. One, which is more complex and shows more stuff, intended for admins, and a simple one for other users. viewAny would affect both. So how can control access diferently?
Solution:
Just found that canAccess is also available to ressources and not only Pages. That does the trick for me (:
Jump to solution
1 Reply
Solution
sven
sven10mo ago
Just found that canAccess is also available to ressources and not only Pages. That does the trick for me (:
Want results from more Discord servers?
Add your server