HotFix: Hide private partisipation in Orgs (#13994)

* HotFix: Hide private partisipation in Orgs

* refactor & add node to fuc GetOrganizations
This commit is contained in:
6543
2020-12-16 23:39:12 +00:00
committed by GitHub
parent 069acf6a21
commit 9e456b5a56
3 changed files with 40 additions and 11 deletions

View File

@ -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()