auth/opa/user/delete.rego

12 lines
116 B
Plaintext

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