From 64373004b518ebeb6e3defbd96c3792f9526cf30 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Sun, 22 Oct 2023 19:45:16 +0800 Subject: [PATCH] Fix org team endpoint (#27721) (#27729) Backport #27721 by @lng2020 Fix #27711 Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com> (cherry picked from commit 71803d33e395829e4b7cee2bd4ae078527106a48) --- routers/api/v1/api.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index ee8578d361..e34e0372a0 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -1308,10 +1308,10 @@ func Routes(ctx gocontext.Context) *web.Route { Delete(reqToken(), reqOrgMembership(), org.ConcealMember) }) m.Group("/teams", func() { - m.Get("", reqToken(), org.ListTeams) - m.Post("", reqToken(), reqOrgOwnership(), bind(api.CreateTeamOption{}), org.CreateTeam) - m.Get("/search", reqToken(), org.SearchTeam) - }, reqOrgMembership()) + m.Get("", org.ListTeams) + m.Post("", reqOrgOwnership(), bind(api.CreateTeamOption{}), org.CreateTeam) + m.Get("/search", org.SearchTeam) + }, reqToken(), reqOrgMembership()) m.Group("/labels", func() { m.Get("", org.ListLabels) m.Post("", reqToken(), reqOrgOwnership(), bind(api.CreateLabelOption{}), org.CreateLabel)