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

View File

@ -523,7 +523,7 @@ func CreateWorkspace(t *testing.T, client *codersdk.Client, organization uuid.UU
for _, mutator := range mutators {
mutator(&req)
}
workspace, err := client.CreateWorkspace(context.Background(), organization, req)
workspace, err := client.CreateWorkspace(context.Background(), organization, codersdk.Me, req)
require.NoError(t, err)
return workspace
}