mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-10-30 07:11:48 +00:00
3346143ced
Co-authored-by: eulegang <eulegang@eulegang.dev>
13 lines
307 B
Rego
13 lines
307 B
Rego
# 13 lines 8 code 3 comments 2 blanks
|
|
|
|
package application.authz
|
|
|
|
# Only owner can update the pet's information
|
|
# Ownership information is provided as part of OPA's input
|
|
default allow = false
|
|
allow {
|
|
input.method == "PUT"
|
|
some petid
|
|
input.path = ["pets", petid]
|
|
input.user == input.owner
|
|
}
|