fix(api): allow empty array when removing accesses to an endpoint (#692)

pull/565/head^2
Anthony Lapenna 2017-03-17 11:52:17 +01:00 committed by GitHub
parent 631b29eddc
commit dcce211676
1 changed files with 1 additions and 2 deletions

View File

@ -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