repository endpoint use acl.AuthorizeAdmin middleware
This commit is contained in:
parent
f832846f9d
commit
d9945b8bbf
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ func (s Server) Handler() http.Handler {
|
|||
|
||||
r.Route("/repos", func(r chi.Router) {
|
||||
r.With(
|
||||
acl.CheckAdminAccess(),
|
||||
acl.AuthorizeAdmin,
|
||||
).Get("/", repos.HandleAll(s.Repos))
|
||||
|
||||
r.Route("/{owner}/{name}", func(r chi.Router) {
|
||||
|
|
Loading…
Reference in a new issue