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

restrictToRoles availability inconsistency #153

Closed
fimdomeio opened this Issue Apr 8, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@fimdomeio
Copy link

fimdomeio commented Apr 8, 2016

in the documentation says It can be used on all methods.
http://docs.feathersjs.com/authorization/bundled-hooks.html#restricttoroles

When trying to apply it to a find method I get the following error:
The 'restrictToRoles' hook should only be used on the 'get', 'update', 'patch' and 'remove' service methods.

@ekryski

This comment has been minimized.

Copy link
Member

ekryski commented Apr 8, 2016

I just fixed this last night. Update to v0.7.1

@ekryski ekryski closed this Apr 8, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.