1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-12 12:38:20 +00:00

fix bug when users have serval teams with different units on different repositories (#5307) (#5308)

This commit is contained in:
Lunny Xiao
2018-11-09 17:46:38 +08:00
committed by GitHub
parent 5995b65175
commit e9b984e162
2 changed files with 11 additions and 1 deletions

View File

@@ -364,7 +364,7 @@ func (repo *Repository) getUnitsByUserID(e Engine, userID int64, isAdmin bool) (
return nil
}
teams, err := getUserTeams(e, repo.OwnerID, userID)
teams, err := getUserRepoTeams(e, repo.OwnerID, userID, repo.ID)
if err != nil {
return err
}