mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08: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