Title
#help
m

Maggie Walker

09/01/2022, 1:02 PM
Is there a
not in
operator, if I'm looking to create an EFFECT_ALLOW if there is not a specific key in a resource attribute?
Charith (Cerbos)

Charith (Cerbos)

09/01/2022, 1:12 PM
You should be able to negate it with the
!
operator:
! (x in y)
m

Maggie Walker

09/01/2022, 1:15 PM
got it, had some funkiness for a minute there but all good now, thanks!
Charith (Cerbos)

Charith (Cerbos)

09/01/2022, 1:17 PM
We also have a REPL where you can quickly try things out: https://docs.cerbos.dev/cerbos/latest/cli/cerbos.html#repl
m

Maggie Walker

09/01/2022, 1:19 PM
oh that rules