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

Permissions and Roles policies. How to? #27

Closed
julianpoma opened this issue Aug 31, 2018 · 1 comment
Closed

Permissions and Roles policies. How to? #27

julianpoma opened this issue Aug 31, 2018 · 1 comment

Comments

@julianpoma
Copy link

julianpoma commented Aug 31, 2018

On my app, only the Admin role should be able to see and change the Permissions and Roles via Nova.

I see that under vendor/vyuldashev/nova-permission/src there are Policy files included. I could set up my logic here, but this file will not be uploaded to my GitHub repo, and when I deploy or update the package, I will have to set up everything again. Is there something I am missing?

Thank you!

@vyuldashev
Copy link
Owner

Just create your own policies and define them in app/Providers/AuthServiceProvider for Permission and Role models.

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

2 participants