Fix 500 for GET /teams/:id endpoints (#1811)
* Fix 500 for GET /teams/:id endpoints * Integration test for GET /team/:id * Clean up integration test
This commit is contained in:
parent
3611a3e552
commit
7e6ff69c00
3 changed files with 63 additions and 25 deletions
|
@ -490,7 +490,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
Put(org.AddTeamRepository).
|
||||
Delete(org.RemoveTeamRepository)
|
||||
})
|
||||
}, reqOrgMembership(), orgAssignment(false, true))
|
||||
}, orgAssignment(false, true), reqOrgMembership())
|
||||
|
||||
m.Any("/*", func(ctx *context.Context) {
|
||||
ctx.Error(404)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue