aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-12-16 23:39:12 +0000
committerGitHub <noreply@github.com>2020-12-17 00:39:12 +0100
commit9e456b5a56c3cf1860ca86be85e19619ad544160 (patch)
tree2088623e52e885947199b947c1a593ba30ecb9c0 /models
parent069acf6a215ea05f23ba5bf75e84dcc63ff95044 (diff)
downloadgitea-9e456b5a56c3cf1860ca86be85e19619ad544160.tar.gz
gitea-9e456b5a56c3cf1860ca86be85e19619ad544160.zip
HotFix: Hide private partisipation in Orgs (#13994)
* HotFix: Hide private partisipation in Orgs * refactor & add node to fuc GetOrganizations
Diffstat (limited to 'models')
-rw-r--r--models/user.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/user.go b/models/user.go
index 2a76995578..e2b2593006 100644
--- a/models/user.go
+++ b/models/user.go
@@ -538,6 +538,7 @@ func (u *User) GetOwnedOrganizations() (err error) {
}
// GetOrganizations returns paginated organizations that user belongs to.
+// TODO: does not respect All and show orgs you privately participate
func (u *User) GetOrganizations(opts *SearchOrganizationsOptions) error {
sess := x.NewSession()
defer sess.Close()