-
Notifications
You must be signed in to change notification settings - Fork 33
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
Not restricting access when no hook is specified in UseAbility #612
Comments
@Arekian i am running into this as well. What workarounds have you considered ? |
I get the same (right or wrong?) behavior on my side when trying to implement an access restriction on a GetAll vs GetById. @liquidautumn I would like your advice on this. Do you consider this a bug? If not, then I guess I should extend DefaultActions with a new action e.g. "Actions.list". |
This is normal behaviour.
So, when you're writing Now regarding what you want to do, I see at least 2 options for now:
|
So I have this permissions:
In controller:
Will work fine with UserHook getting the User given :id as param.
But when I do this for a getall:
as no hook is specified (or if I send null), It will allow access to the @get route. Is this intended behaviour?
The text was updated successfully, but these errors were encountered: