eminiarts / nova-permissions

Laravel Nova Grouped Permissions
126 stars 66 forks source link

Model Policy not working for other role than super-admin #8

Open mikhi opened 5 years ago

mikhi commented 5 years ago

Hi Guys,

Great package so far. The UI is much better than "vyuldashev/nova-permission" package.

I have an issue and i don't know if i setup something wrong, or is a bug.

Basically i try to:

At this moment the navigation menu should be filtered based on the User-Role-Permission & Model Policy, right? image

But, in my case all the models configured with policies are not displayed/accessible within the navigation menu.

image

For the super-admin role, the navigation menu is displayed with all the resources:

image

Any idea what i'm doing wrong?

raresnv commented 5 years ago

Get rid of the lines referencing to "HandlesAuthorization"

anditsung commented 4 years ago

if you only add view own permission only it will not show anything. you should add view permission too. i already create a fix and make PR for this issue