fix incorrect team secret middleware assignment

This commit is contained in:
Brad Rydzewski 2016-10-14 12:21:40 +02:00 committed by GitHub
parent 5130919869
commit 2d90155d5a

View file

@ -64,7 +64,7 @@ func Load(middleware ...gin.HandlerFunc) http.Handler {
teams := e.Group("/api/teams")
{
user.Use(session.MustTeamAdmin())
teams.Use(session.MustTeamAdmin())
team := teams.Group("/:team")
{