auth/opa/user/read.rego

12 lines
118 B
Plaintext
Raw Normal View History

2023-01-30 14:51:24 +00:00
package USER.READ
default allow := false
2023-05-04 12:46:40 +00:00
allow {
2023-07-12 08:39:55 +00:00
input.id == input.owner
2023-01-18 14:50:42 +00:00
}
2023-05-04 12:46:40 +00:00
allow {
2023-01-18 14:50:42 +00:00
input.role == "admin"
}