mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	fix #1953
This commit is contained in:
		@@ -101,6 +101,10 @@ func (u *User) GetAccessibleRepositories() ([]*Repository, error) {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if len(accesses) == 0 {
 | 
			
		||||
		return []*Repository{}, nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	repoIDs := make([]int64, 0, len(accesses))
 | 
			
		||||
	for _, access := range accesses {
 | 
			
		||||
		repoIDs = append(repoIDs, access.RepoID)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user