fix(api): fix invalid restriction on StatusInspectVersion

pull/3239/head
Anthony Lapenna 5 years ago
parent b0f48ee3ad
commit 68fe5d6906

@ -24,7 +24,7 @@ func NewHandler(bouncer *security.RequestBouncer, status *portainer.Status) *Han
h.Handle("/status",
bouncer.PublicAccess(httperror.LoggerHandler(h.statusInspect))).Methods(http.MethodGet)
h.Handle("/status/version",
bouncer.RestrictedAccess(http.HandlerFunc(h.statusInspectVersion))).Methods(http.MethodGet)
bouncer.AuthenticatedAccess(http.HandlerFunc(h.statusInspectVersion))).Methods(http.MethodGet)
return h
}

Loading…
Cancel
Save