Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d859ee

Browse files
committed
fix: Allow fetching of non-personal workspaces
RBAC should cover this anyways!
1 parent22ec366 commit1d859ee

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-
ifapiKey.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)

[8]ページ先頭

©2009-2025 Movatter.jp