diff options
author | 6543 <6543@obermui.de> | 2021-07-26 22:46:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-26 23:46:06 +0300 |
commit | 7c7771e42b2eebd5a698d036c28a21670ff519dd (patch) | |
tree | 8537bd8051689d17b954861d80322984bf8f0c2a /models/repo.go | |
parent | e76f8cac9a2ba727bec6b5beab2496be9dafabef (diff) | |
download | gitea-7c7771e42b2eebd5a698d036c28a21670ff519dd.tar.gz gitea-7c7771e42b2eebd5a698d036c28a21670ff519dd.zip |
Fix session bugs (#16552)
* fix deadlog bug
* Fix models/issue_stopwatch.go
* Update models/issue_stopwatch.go
Co-authored-by: zeripath <art27@cantab.net>
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 de8a282531..93827f6a88 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1125,7 +1125,7 @@ func CreateRepository(ctx DBContext, doer, u *User, repo *Repository, overwriteO // Give access to all members in teams with access to all repositories. if u.IsOrganization() { - if err := u.GetTeams(&SearchTeamOptions{}); err != nil { + if err := u.getTeams(ctx.e); err != nil { return fmt.Errorf("GetTeams: %v", err) } for _, t := range u.Teams { |