summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-05-26 09:15:45 -0400
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-05-26 08:15:45 -0500
commit7e6ff69c00119f5bd5977bc4b5a561fe606e15e4 (patch)
tree303af668116af069f6091113ae1a9d9b9023a9fe /routers
parent3611a3e5529329c9ab1a137c0930199959a40e71 (diff)
downloadgitea-7e6ff69c00119f5bd5977bc4b5a561fe606e15e4.tar.gz
gitea-7e6ff69c00119f5bd5977bc4b5a561fe606e15e4.zip
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
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index 96e3830a21..5dd06c37fb 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -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)