Skip to content

Commit 1d859ee

Browse files
committed
fix: Allow fetching of non-personal workspaces
RBAC should cover this anyways!
1 parent 22ec366 commit 1d859ee

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

coderd/httpmw/workspaceparam.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,6 @@ func ExtractWorkspaceParam(db database.Store) func(http.Handler) http.Handler {
4444
return
4545
}
4646

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-
5547
ctx := context.WithValue(r.Context(), workspaceParamContextKey{}, workspace)
5648
next.ServeHTTP(rw, r.WithContext(ctx))
5749
})

0 commit comments

Comments
 (0)