Fix out-of-transaction query in removeOrgUser (#4521) (#4522)

This commit is contained in:
SagePtr 2018-07-27 01:41:36 +02:00 committed by Lauris BH
parent be4ec0cbba
commit ac968c3c6f

View File

@ -454,7 +454,7 @@ func AddOrgUser(orgID, uid int64) error {
func removeOrgUser(sess *xorm.Session, orgID, userID int64) error {
ou := new(OrgUser)
has, err := x.
has, err := sess.
Where("uid=?", userID).
And("org_id=?", orgID).
Get(ou)