1
0
Fork 0
forked from forgejo/forgejo

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

This commit is contained in:
Lunny Xiao 2018-11-09 14:16:52 +08:00 committed by Lauris BH
parent 599adde1bc
commit c5d098c32e
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
}