feat(coderd/agentapi): allow inserting apps for sub agents (#18129)

Allow creating workspace apps for a sub agent when the agent is being
created with `CreateSubAgent` in the agent api.
This commit is contained in:
Danielle Maywood
2025-06-05 11:57:02 +01:00
committed by GitHub
parent 277c2c7ea7
commit b5fd3dd855
5 changed files with 1617 additions and 293 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ var (
orgID.String(): {},
},
User: rbac.Permissions(map[string][]policy.Action{
rbac.ResourceWorkspace.Type: {policy.ActionRead, policy.ActionCreateAgent, policy.ActionDeleteAgent},
rbac.ResourceWorkspace.Type: {policy.ActionRead, policy.ActionUpdate, policy.ActionCreateAgent, policy.ActionDeleteAgent},
}),
},
}),