Skip to content

Commit

Permalink
Update pkg/proxy/proxy.go
Browse files Browse the repository at this point in the history
Co-authored-by: Kanika Rana <[email protected]>
  • Loading branch information
alexeykazakov and ranakan19 authored Oct 4, 2024
1 parent db076ea commit 1fee789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ func replaceTokenInWebsocketRequest(req *http.Request, newToken string) {
}

// validateWorkspaceRequest checks whether the requested workspace is in the list of workspaces the user has visibility on (retrieved via the spaceLister).
// If `requestedWorkspace` is zero, then the home workspace (the one with `status.Type` set to `home`) is assumed.
// If `requestedWorkspace` is empty, then the home workspace (the one with `status.Type` set to `home`) is assumed.
func validateWorkspaceRequest(requestedWorkspace string, workspaces ...toolchainv1alpha1.Workspace) error {
// check workspace access
isHomeWSRequested := requestedWorkspace == ""
Expand Down

0 comments on commit 1fee789

Please sign in to comment.