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"
}