forked from forgejo/forgejo
fix bug when users have serval teams with different units on different repositories (#5307)
This commit is contained in:
parent
599adde1bc
commit
c5d098c32e
2 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue