auth/opa/user/read.rego

12 lines
120 B
Plaintext

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