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

Unable to create shield resource for guard different than "web" #9

Open
scramatte opened this issue Oct 24, 2024 · 1 comment
Open

Comments

@scramatte
Copy link

scramatte commented Oct 24, 2024

Hi,

I'm not able to create shield resource for guard different than "web"

Not sure if it's related to Spatie\Permission or to Nova\Shield

There is no permission named `faqs::viewAny` for guard `api`. {"userId":323,"exception":"[object] (Spatie\\Permission\\Exceptions\\PermissionDoesNotExist(code: 0): There is no permission named `faqs::viewAny` for guard `api`. (...PermissionDoesNotExist.php:11)

Can you take a look?

Regards

@scramatte
Copy link
Author

I've added more resources directories to my config/nova-shield.php
Permissions are not createad automatically when you add or modify a "shield resource"

If you previously create all permissions by hand it works.

Does it the normal behaviour ?

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

1 participant