-
Notifications
You must be signed in to change notification settings - Fork 34
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
403 on nova resource update and call wrong gate #6546
Comments
Unable to reproduce the issue, please provide full reproducing repository based on fresh installation as suggested in the bug report template (or you can refer to https://github.com/nova-issues for example) |
Hello @crynobone You can create a fresh project with nova and telescope and add this UserPolicy
Then when you try to update an user you will see a lot of denied gateway Please tell me if you fall in the same issue. Thanks MM |
After a short analysis, get that the gate were denied if the method does not exist, this seems a bug to me. Thanks MM |
This comment has been minimized.
This comment has been minimized.
Expected behaviour and already described on the documentation: https://nova.laravel.com/docs/resources/authorization.html#undefined-policy-methods |
Description:
On updating a nova resource the app hits 3 gates:
viewNova - allowed
create - allowed
[
"App\Models\QrCode"
]
create - denied
[
"App\Models\Suggestion"
]
There are no relations with models QrCode and Suggestion and there are no policies for suggestions.
Thanks
MM
The text was updated successfully, but these errors were encountered: