diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-12 00:55:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-12 00:55:06 +0800 |
commit | 9bf28a2799f080a12c6eb85aa2fb9d4deacc37fc (patch) | |
tree | 4c23bb111e4255fbf0b2d37c5c45ba60804674bd /models/org.go | |
parent | a8c6698de8d6c2e0331e0b5fa8497741d5854582 (diff) | |
download | gitea-9bf28a2799f080a12c6eb85aa2fb9d4deacc37fc.tar.gz gitea-9bf28a2799f080a12c6eb85aa2fb9d4deacc37fc.zip |
bug fixed for 500 caused by get org users (#149)
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/org.go b/models/org.go index 845ff7f83c..1caf241eaa 100644 --- a/models/org.go +++ b/models/org.go @@ -323,8 +323,8 @@ func GetOwnedOrgsByUserIDDesc(userID int64, desc string) ([]*User, error) { func GetOrgUsersByUserID(uid int64, all bool) ([]*OrgUser, error) { ous := make([]*OrgUser, 0, 10) sess := x. - Join("LEFT", "user", `"org_user".org_id="user".id`). - Where(`"org_user".uid=?`, uid) + Join("LEFT", "user", "`org_user`.org_id=`user`.id"). + Where("`org_user`.uid=?", uid) if !all { // Only show public organizations sess.And("is_public=?", true) |