fix incorrect team secret middleware assignment
This commit is contained in:
parent
5130919869
commit
2d90155d5a
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue