auth/opa/user/delete.rego

12 lines
114 B
Plaintext

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