mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
style(dashboard): update dashboard information (#2079)
* style(dashboard): update dashboard information * docs(swagger): update swagger.yml
This commit is contained in:
parent
3306cbaa27
commit
134a38a566
6 changed files with 89 additions and 113 deletions
|
@ -23,5 +23,12 @@ func (handler *Handler) endpointInspect(w http.ResponseWriter, r *http.Request)
|
|||
return &httperror.HandlerError{http.StatusInternalServerError, "Unable to find an endpoint with the specified identifier inside the database", err}
|
||||
}
|
||||
|
||||
err = handler.requestBouncer.EndpointAccess(r, endpoint)
|
||||
if err != nil {
|
||||
return &httperror.HandlerError{http.StatusForbidden, "Permission denied to access endpoint", portainer.ErrEndpointAccessDenied}
|
||||
}
|
||||
|
||||
hideFields(endpoint)
|
||||
|
||||
return response.JSON(w, endpoint)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue