mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
This commit is contained in:
		@@ -1608,7 +1608,7 @@ func TransferOwnership(doer *User, newOwnerName string, repo *Repository) error
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if newOwner.IsOrganization() {
 | 
						if newOwner.IsOrganization() {
 | 
				
			||||||
		if err := newOwner.GetTeams(); err != nil {
 | 
							if err := newOwner.getTeams(sess); err != nil {
 | 
				
			||||||
			return fmt.Errorf("GetTeams: %v", err)
 | 
								return fmt.Errorf("GetTeams: %v", err)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		for _, t := range newOwner.Teams {
 | 
							for _, t := range newOwner.Teams {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user