diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-28 00:11:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-28 00:11:41 +0800 |
commit | bb5a6b7a07125b29604f479f45e59073cb3d4648 (patch) | |
tree | 590eeb774f6cb16bc8f8b12dc8f92fb6fd11b443 /models/org_team.go | |
parent | 25663b58161c48bdc8e9cae900544378dede0d2b (diff) | |
download | gitea-bb5a6b7a07125b29604f479f45e59073cb3d4648.tar.gz gitea-bb5a6b7a07125b29604f479f45e59073cb3d4648.zip |
fix xorm NewSession uncorrected usages (#774)
Diffstat (limited to 'models/org_team.go')
-rw-r--r-- | models/org_team.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/org_team.go b/models/org_team.go index 237a6fcf0c..d9ad0ba28f 100644 --- a/models/org_team.go +++ b/models/org_team.go @@ -309,7 +309,7 @@ func UpdateTeam(t *Team, authChanged bool) (err error) { } t.LowerName = strings.ToLower(t.Name) - has, err := x. + has, err := sess. Where("org_id=?", t.OrgID). And("lower_name=?", t.LowerName). And("id!=?", t.ID). |