repository endpoint use acl.AuthorizeAdmin middleware

This commit is contained in:
Brad Rydzewski 2019-10-02 14:23:15 -07:00
parent f832846f9d
commit d9945b8bbf

View file

@ -156,7 +156,7 @@ func (s Server) Handler() http.Handler {
r.Route("/repos", func(r chi.Router) { r.Route("/repos", func(r chi.Router) {
r.With( r.With(
acl.CheckAdminAccess(), acl.AuthorizeAdmin,
).Get("/", repos.HandleAll(s.Repos)) ).Get("/", repos.HandleAll(s.Repos))
r.Route("/{owner}/{name}", func(r chi.Router) { r.Route("/{owner}/{name}", func(r chi.Router) {