Merge pull request #7158 from JakubOnderka/sg-user-org-id

fix: [internal] Organisation object for user is not included all time
pull/7334/head
Jakub Onderka 2021-04-03 17:42:17 +02:00 committed by GitHub
commit f8ae2f40ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class SharingGroup extends AppModel
} else {
$ids = array_unique(array_merge(
$this->SharingGroupServer->fetchAllAuthorised(),
$this->SharingGroupOrg->fetchAllAuthorised($user['Organisation']['id'])
$this->SharingGroupOrg->fetchAllAuthorised($user['org_id'])
));
}
if (!empty($ids)) {