We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22ec366 commit 1d859eeCopy full SHA for 1d859ee
coderd/httpmw/workspaceparam.go
@@ -44,14 +44,6 @@ func ExtractWorkspaceParam(db database.Store) func(http.Handler) http.Handler {
44
return
45
}
46
47
- apiKey := APIKey(r)
48
- if apiKey.UserID != workspace.OwnerID {
49
- httpapi.Write(rw, http.StatusUnauthorized, httpapi.Response{
50
- Message: "getting non-personal workspaces isn't supported",
51
- })
52
- return
53
- }
54
-
55
ctx := context.WithValue(r.Context(), workspaceParamContextKey{}, workspace)
56
next.ServeHTTP(rw, r.WithContext(ctx))
57
})
0 commit comments