-
-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
Milestone
Description
- ZenStack version: 1.2.0
It seems that
| hasFieldLevelPolicy, |
this.hasFieldLevelPolicy(model) on the nested model it is using the hasFieldLevelPolicy of the parent, so no field level policies are applied.
We are using the pattern described in #809 to @deny all fields except one on our User model, and this appears to be leaking our entire user model when it is accessed via relation/include (edit - sorry I should emphasize that this is largely a non-issue since we are only selecting the field we need, I just noticed that in the default case the policies won't apply).
Happy to provide a reproduction if necessary.
Also - congrats on 1K stars! 🤩