auth/opa/user/read.rego

12 lines
136 B
Plaintext

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