mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: properly convert max port share level for oss (#13261)
This commit is contained in:
@ -69,7 +69,7 @@ func (api *API) postWorkspaceAgentPortShare(rw http.ResponseWriter, r *http.Requ
|
||||
return
|
||||
}
|
||||
|
||||
err = portSharer.AuthorizedPortSharingLevel(template, req.ShareLevel)
|
||||
err = portSharer.AuthorizedLevel(template, req.ShareLevel)
|
||||
if err != nil {
|
||||
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
|
||||
Message: err.Error(),
|
||||
|
Reference in New Issue
Block a user