mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08: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:
		@@ -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