diff --git a/coderd/workspaces.go b/coderd/workspaces.go index f2114e1f92..4c1359f9de 100644 --- a/coderd/workspaces.go +++ b/coderd/workspaces.go @@ -2354,17 +2354,6 @@ func (api *API) patchWorkspaceACL(rw http.ResponseWriter, r *http.Request) { return } - // Don't allow adding new groups or users to a workspace associated with a - // task. Sharing a task workspace without sharing the task itself is a broken - // half measure that we don't want to support right now. To be fixed! - if workspace.TaskID.Valid { - httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{ - Message: "Task workspaces cannot be shared.", - Detail: "This workspace is managed by a task. Task sharing has not yet been implemented.", - }) - return - } - apiKey := httpmw.APIKey(r) if _, ok := req.UserRoles[apiKey.UserID.String()]; ok { httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{ diff --git a/site/src/modules/tasks/TasksSidebar/TasksSidebar.tsx b/site/src/modules/tasks/TasksSidebar/TasksSidebar.tsx index aa920cd60d..0fff35aa06 100644 --- a/site/src/modules/tasks/TasksSidebar/TasksSidebar.tsx +++ b/site/src/modules/tasks/TasksSidebar/TasksSidebar.tsx @@ -103,10 +103,8 @@ export const TasksSidebar: FC = () => {