aboutsummaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user.go b/models/user.go
index 71729a4e3e..ebdc3c47fe 100644
--- a/models/user.go
+++ b/models/user.go
@@ -376,8 +376,8 @@ func (u *User) GetOwnedOrganizations() (err error) {
}
// GetOrganizations returns all organizations that user belongs to.
-func (u *User) GetOrganizations() error {
- ous, err := GetOrgUsersByUserId(u.Id)
+func (u *User) GetOrganizations(all bool) error {
+ ous, err := GetOrgUsersByUserID(u.Id, all)
if err != nil {
return err
}