feat: Allow admins to create workspaces (#4183)

Fixes #3263.

This is now possible via the API, but still isn't possible via the UI.
This commit is contained in:
Kyle Carberry
2022-09-23 20:17:10 -05:00
committed by GitHub
parent 266a3b24e7
commit 3c215a83b6
9 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ func create() *cobra.Command {
}
after := time.Now()
workspace, err := client.CreateWorkspace(cmd.Context(), organization.ID, codersdk.CreateWorkspaceRequest{
workspace, err := client.CreateWorkspace(cmd.Context(), organization.ID, codersdk.Me, codersdk.CreateWorkspaceRequest{
TemplateID: template.ID,
Name: workspaceName,
AutostartSchedule: schedSpec,