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:
Ethan Koenig 2017-05-26 09:15:45 -04:00 committed by Bo-Yi Wu
parent 3611a3e552
commit 7e6ff69c00
3 changed files with 63 additions and 25 deletions

View file

@ -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)