summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-11-09 14:16:52 +0800
committerLauris BH <lauris@nix.lv>2018-11-09 08:16:52 +0200
commitc5d098c32e85d2ac42d318de5a37b7bfe34dc8cc (patch)
tree936162de6faeafd899e7a0e05014287240f04955 /models/repo.go
parent599adde1bc3670279d371fd9f2620c2829286bf6 (diff)
downloadgitea-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.go2
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
}