mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 02:21:17 +02:00
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:
1 parent
3611a3e552
commit
7e6ff69c00
3 files changed
+63
-25
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user