mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	fix upload attachments (#6481)
* fix upload attachments * add migration for new column uploader_id on table attachment * fix imports sequence
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							0a8e63c682
						
					
				
				
					commit
					09fb036ad6
				
			@@ -480,9 +480,12 @@ func RegisterRoutes(m *macaron.Macaron) {
 | 
			
		||||
				return
 | 
			
		||||
			}
 | 
			
		||||
		})
 | 
			
		||||
		m.Post("/attachments", repo.UploadAttachment)
 | 
			
		||||
	}, ignSignIn)
 | 
			
		||||
 | 
			
		||||
	m.Group("", func() {
 | 
			
		||||
		m.Post("/attachments", repo.UploadAttachment)
 | 
			
		||||
	}, reqSignIn)
 | 
			
		||||
 | 
			
		||||
	m.Group("/:username", func() {
 | 
			
		||||
		m.Get("/action/:action", user.Action)
 | 
			
		||||
	}, reqSignIn)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user