mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-22 15:18:43 +00:00
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")
|
teams := e.Group("/api/teams")
|
||||||
{
|
{
|
||||||
user.Use(session.MustTeamAdmin())
|
teams.Use(session.MustTeamAdmin())
|
||||||
|
|
||||||
team := teams.Group("/:team")
|
team := teams.Group("/:team")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue