nova-multiple-dashboard
nova-multiple-dashboard copied to clipboard
Apply viewAny to a Dashboard
Hi,
As you know Nova let you to decide if you want to display a resource in the Sidebar based on a Policy with a method viewAny.
Does it work with your package?
I tried it but I could not make it work.
My dashboard is call Users and also I have a Users Resource
After I add this code to the UserPolicy the Users Resource disappears from the Sidebar but not the User Dashbord
public function viewAny(User $user) { return false; }
Do you know why? Am I missing something?
Thank you for any help,