eminiarts / nova-permissions

Laravel Nova Grouped Permissions
126 stars 65 forks source link

Implementation hide Roles and Permissions in menu when with viewAny. #4

Closed fbrissi closed 5 years ago

fbrissi commented 5 years ago

In fact, when you create policy for roles and permission, both are not hidden.

Added @can for viewAny to hide when no has access.

fbrissi commented 5 years ago

But this required implementation creates RolePolicy and PermissionPolicy. These policies should be created in framework or by implementation?

bajramemini commented 5 years ago

Hello @fbrissi

Thanks for improving the package. Going to merge this in as soon as I decide whether there should be a RolePolicy and PermissionPolicy in the Package.

Regards

xenonthong commented 5 years ago

@bajramemini if you do not plan to merge this PR. Perhaps I can include a documentation for others to implment it themselves should they choose to.