auth/opa/user/update.rego

12 lines
116 B
Plaintext

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