diff options
author | guillep2k | 2020-05-16 18:10:04 -0300 |
---|---|---|
committer | GitHub | 2020-05-17 00:10:04 +0300 |
commit | 878434146fa460f215a6dce34502e162a33ee148 (patch) | |
tree | 99e504ce6178cbe50346c68566ddbcee1ca330f3 | |
parent | d78be7ddf96c991c91b9e4a02b646f52eb3c21f6 (diff) |
Use session for retrieving org teams (#11438) (#11439)
Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
-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 b5a9395ed..cb092f325 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1608,7 +1608,7 @@ func TransferOwnership(doer *User, newOwnerName string, repo *Repository) error } if newOwner.IsOrganization() { - if err := newOwner.GetTeams(); err != nil { + if err := newOwner.getTeams(sess); err != nil { return fmt.Errorf("GetTeams: %v", err) } for _, t := range newOwner.Teams { |