Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Apply viewAny to a Dashboard #7

Open
ronnytorresmtz opened this issue Feb 5, 2019 · 0 comments
Open

Apply viewAny to a Dashboard #7

ronnytorresmtz opened this issue Feb 5, 2019 · 0 comments

Comments

@ronnytorresmtz
Copy link

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,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant