mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix users cannot visit issue attachment bug (#25019)
Caused by #24362 Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		@@ -89,6 +89,9 @@ func TestCreateIssueAttachment(t *testing.T) {
 | 
			
		||||
	// Validate that attachment is available
 | 
			
		||||
	req = NewRequest(t, "GET", "/attachments/"+uuid)
 | 
			
		||||
	session.MakeRequest(t, req, http.StatusOK)
 | 
			
		||||
 | 
			
		||||
	// anonymous visit should be allowed because user2/repo1 is a public repository
 | 
			
		||||
	MakeRequest(t, req, http.StatusOK)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func TestGetAttachment(t *testing.T) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user