2023-01-30 14:51:24 +00:00
|
|
|
package USER.READ
|
2023-01-16 14:03:58 +00:00
|
|
|
|
|
|
|
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"
|
2023-01-16 14:03:58 +00:00
|
|
|
}
|