Checking a resource where against a attribute that is an array #1969
Unanswered
DavePCoder
asked this question in
Q&A
Replies: 2 comments
-
Hi. You can absolutely have an array as an attribute. You can see an example here where |
Beta Was this translation helpful? Give feedback.
0 replies
-
This demo uses multiple array attributes as well: https://github.com/cerbos/demo-multitenant-saas |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Forgive the newbie question to the world of Cerbos. The examples have helped me do a lot of the work i needed, but i'm struggling with how to tackle the following scenario:
How how would i define the resource attributes? I effectively have an attribute that is a array or collection that is UsersOnTask, and i want to EFFECT_ALLOW edit_forecast if the principle.id is any id in the UsersOnTask (array) attribute. However, as far as i can tell i cannot have an array as an attribute, so how would i achieve this?
Beta Was this translation helpful? Give feedback.
All reactions