auth/opa/user/read.rego

12 lines
118 B
Plaintext

package USER.READ
default allow := false
allow {
input.id == input.owner
}
allow {
input.role == "admin"
}