diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2018-11-09 14:16:52 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-11-09 08:16:52 +0200 |
commit | c5d098c32e85d2ac42d318de5a37b7bfe34dc8cc (patch) | |
tree | 936162de6faeafd899e7a0e05014287240f04955 /models/repo.go | |
parent | 599adde1bc3670279d371fd9f2620c2829286bf6 (diff) | |
download | gitea-c5d098c32e85d2ac42d318de5a37b7bfe34dc8cc.tar.gz gitea-c5d098c32e85d2ac42d318de5a37b7bfe34dc8cc.zip |
fix bug when users have serval teams with different units on different repositories (#5307)
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index 3e18776046..b7be50e9d1 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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 } |