Add API to check if team has repo access (#19540)

* Add API to check if team has repo access

* Add test case
This commit is contained in:
qwerty287 2022-05-01 17:39:04 +02:00 committed by GitHub
parent edff571aa9
commit ac6c338428
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 117 additions and 1 deletions

View file

@ -1121,7 +1121,8 @@ func Routes() *web.Route {
m.Get("", org.GetTeamRepos)
m.Combo("/{org}/{reponame}").
Put(org.AddTeamRepository).
Delete(org.RemoveTeamRepository)
Delete(org.RemoveTeamRepository).
Get(org.GetTeamRepo)
})
}, orgAssignment(false, true), reqToken(), reqTeamMembership())