mirror of
https://gitlab.com/mobicoop/v3/service/auth.git
synced 2026-01-02 19:02:40 +00:00
refactor context sent to opa
This commit is contained in:
@@ -3,5 +3,5 @@ package user.list
|
||||
default allow := false
|
||||
|
||||
allow := true {
|
||||
input.uuid == "96d99d44-e0a6-458e-a656-de2a400d60a9"
|
||||
input.role == "admin"
|
||||
}
|
||||
|
||||
@@ -3,5 +3,9 @@ package user.read
|
||||
default allow := false
|
||||
|
||||
allow := true {
|
||||
input.uuid == "96d99d44-e0a6-458e-a656-de2a400d60a8"
|
||||
input.uuid == input.owner
|
||||
}
|
||||
|
||||
allow := true {
|
||||
input.role == "admin"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user