diff options
author | Unknwon <u@gogs.io> | 2016-02-14 20:36:03 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-14 20:36:03 -0500 |
commit | fd92d91da3212f609ed6266fed7ac4b9f238f771 (patch) | |
tree | 067d0db62c740d835b334fbaea5cfcc25ca38c0f /models/org.go | |
parent | d8631b616e41a0dc05db7982bf6b5a569307f622 (diff) | |
download | gitea-fd92d91da3212f609ed6266fed7ac4b9f238f771.tar.gz gitea-fd92d91da3212f609ed6266fed7ac4b9f238f771.zip |
Minor fix for #2578
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models/org.go b/models/org.go index 8b773b2d04..de66af6692 100644 --- a/models/org.go +++ b/models/org.go @@ -260,15 +260,15 @@ func getOrgsByUserID(sess *xorm.Session, userID int64) ([]*User, error) { Join("INNER", "`org_user`", "`org_user`.org_id=`user`.id").Find(&orgs) } -// GetPublicOrgsByUserID returns a list of organizations that the given user ID -// has joined publicly. +// GetOrgsByUserID returns a list of organizations that the given user ID +// has joined. func GetOrgsByUserID(userID int64) ([]*User, error) { sess := x.NewSession() return getOrgsByUserID(sess, userID) } -// GetPublicOrgsByUserID returns a list of organizations that the given user ID -// has joined publicly, ordered descending by the given condition. +// GetOrgsByUserIDDesc returns a list of organizations that the given user ID +// has joined, ordered descending by the given condition. func GetOrgsByUserIDDesc(userID int64, desc string, all bool) ([]*User, error) { sess := x.NewSession() if !all { |