mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add workspace acls to task rbac objects (#22311)
To allow tasks to be shareable, we need to share both the `task` resource and the `workspace` resource, and their sharing state needs to be kept in sync. We've already implemented all of the necessary ACL functionality for workspaces, so we can just sort of proxy those ACLs back to the task as well.
This commit is contained in:
@@ -82,6 +82,12 @@ sql:
|
||||
- column: "template_usage_stats.app_usage_mins"
|
||||
go_type:
|
||||
type: "StringMapOfInt"
|
||||
- column: "tasks_with_status.workspace_user_acl"
|
||||
go_type:
|
||||
type: "WorkspaceACL"
|
||||
- column: "tasks_with_status.workspace_group_acl"
|
||||
go_type:
|
||||
type: "WorkspaceACL"
|
||||
- column: "workspaces.user_acl"
|
||||
go_type:
|
||||
type: "WorkspaceACL"
|
||||
@@ -186,6 +192,8 @@ sql:
|
||||
jwt: JWT
|
||||
user_acl: UserACL
|
||||
group_acl: GroupACL
|
||||
workspace_user_acl: WorkspaceUserACL
|
||||
workspace_group_acl: WorkspaceGroupACL
|
||||
user_acl_display_info: UserACLDisplayInfo
|
||||
group_acl_display_info: GroupACLDisplayInfo
|
||||
troubleshooting_url: TroubleshootingURL
|
||||
|
||||
Reference in New Issue
Block a user