aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguillep2k2020-05-16 18:10:04 -0300
committerGitHub2020-05-17 00:10:04 +0300
commit878434146fa460f215a6dce34502e162a33ee148 (patch)
tree99e504ce6178cbe50346c68566ddbcee1ca330f3
parentd78be7ddf96c991c91b9e4a02b646f52eb3c21f6 (diff)
Use session for retrieving org teams (#11438) (#11439)
Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
-rw-r--r--models/repo.go2
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 {