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

restrictToOwner and restrictToRoles hooks don't work with nested models #163

ekryski opened this Issue Apr 18, 2016 · 0 comments


None yet
1 participant
Copy link

ekryski commented Apr 18, 2016

They both assume that the resource you are checking does not have any fields populated. Therefore we need to check to see if the ownerField is an object and if so, check the idField of the nested object at the ownerField location.

@ekryski ekryski added the Bug label Apr 18, 2016

@ekryski ekryski added this to the 0.8 milestone Apr 18, 2016

@ekryski ekryski closed this in 9e416cf Apr 18, 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.