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

Apply viewAny to a Dashboard #7

@ronnytorresmtz

Description

@ronnytorresmtz

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions