fix opa rules

This commit is contained in:
sbriat 2023-01-30 15:51:24 +01:00
parent a707dfbc28
commit d0a113315a
4 changed files with 14 additions and 14 deletions

View File

@ -1,11 +1,11 @@
package user.delete
package USER.DELETE
default allow := false
allow := true {
input.uuid == input.owner
allow {
input.uuid == input.owner
}
allow := true {
input.role == "admin"
allow {
input.role == "admin"
}

View File

@ -1,7 +1,7 @@
package user.list
package USER.LIST
default allow := false
allow := true {
input.role == "admin"
allow {
input.role == "admin"
}

View File

@ -1,4 +1,4 @@
package user.read
package USER.READ
default allow := false

View File

@ -1,11 +1,11 @@
package user.update
package USER.UPDATE
default allow := false
allow := true {
input.uuid == input.owner
allow {
input.uuid == input.owner
}
allow := true {
input.role == "admin"
allow {
input.role == "admin"
}