Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

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

Closed
ekryski opened this issue Apr 18, 2016 · 0 comments
Closed
Labels
Milestone

Comments

@ekryski
Copy link
Member

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
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant