mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: scope allow_list to include resource_type (#19748)
This feature allows the `allow_list` in the scopes to specify the `type`
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"action": "never-match-action",
|
||||
"action": "read",
|
||||
"object": {
|
||||
"id": "9046b041-58ed-47a3-9c3a-de302577875a",
|
||||
"owner": "00000000-0000-0000-0000-000000000000",
|
||||
@@ -40,7 +40,11 @@
|
||||
],
|
||||
"org": {},
|
||||
"user": [],
|
||||
"allow_list": ["*"]
|
||||
"allow_list": [
|
||||
{
|
||||
"type": "workspace",
|
||||
"id": "*"
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user