add user update/delete policy
This commit is contained in:
parent
d75ab7f82a
commit
02eae16665
|
@ -0,0 +1,11 @@
|
|||
package user.delete
|
||||
|
||||
default allow := false
|
||||
|
||||
allow := true {
|
||||
input.uuid == input.owner
|
||||
}
|
||||
|
||||
allow := true {
|
||||
input.role == "admin"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package user.update
|
||||
|
||||
default allow := false
|
||||
|
||||
allow := true {
|
||||
input.uuid == input.owner
|
||||
}
|
||||
|
||||
allow := true {
|
||||
input.role == "admin"
|
||||
}
|
Loading…
Reference in New Issue