aboutsummaryrefslogtreecommitdiffstats
path: root/models/org.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/org.go')
-rw-r--r--models/org.go4
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)