You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As explained in this blog post, the check() function is a great way to simplify access rules with complex sets of models. However it is not implemented yet for to-many relations.
Describe the solution you'd like
Much like check(author) checks if the model referenced by the author field is accessible, check(children?) should check if any of the related children are accessible. Other Collection Predicate Expressions should work similarly.
As explained in this blog post, the
check()
function is a great way to simplify access rules with complex sets of models. However it is not implemented yet for to-many relations.Describe the solution you'd like
Much like
check(author)
checks if the model referenced by theauthor
field is accessible,check(children?)
should check if any of the relatedchildren
are accessible. Other Collection Predicate Expressions should work similarly.Other syntax options are also discussed in the blog post and its comment thread: zenstackhq/zenstack-docs#360
The text was updated successfully, but these errors were encountered: