mirror of https://github.com/portainer/portainer
fix(api): allow empty array when removing accesses to an endpoint (#692)
parent
631b29eddc
commit
dcce211676
|
@ -20,7 +20,6 @@ type EndpointHandler struct {
|
|||
authorizeEndpointManagement bool
|
||||
EndpointService portainer.EndpointService
|
||||
FileService portainer.FileService
|
||||
// server *Server
|
||||
}
|
||||
|
||||
const (
|
||||
|
@ -214,7 +213,7 @@ func (handler *EndpointHandler) handlePutEndpointAccess(w http.ResponseWriter, r
|
|||
}
|
||||
|
||||
type putEndpointAccessRequest struct {
|
||||
AuthorizedUsers []int `valid:"required"`
|
||||
AuthorizedUsers []int `valid:"-"`
|
||||
}
|
||||
|
||||
// handlePutEndpoint handles PUT requests on /endpoints/:id
|
||||
|
|
Loading…
Reference in New Issue