Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikhi opened this issue Apr 23, 2019 · 2 comments
Open

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

mikhi opened this issue Apr 23, 2019 · 2 comments

Comments

@mikhi
Copy link

mikhi commented Apr 23, 2019

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:

  • create a role and set limited permissions:
    image
  • attach the role to user. This user has only the new role.
  • create a new Policy which extends your policy:
    image

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?

@mikhi mikhi changed the title Model Policy not working for Others role than super-admin Model Policy not working for other role than super-admin Apr 23, 2019
@raresnv
Copy link

raresnv commented Aug 18, 2019

Get rid of the lines referencing to "HandlesAuthorization"

@anditsung
Copy link

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

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

No branches or pull requests

3 participants