fix: [sharing group] saving fixed

invalid boolean operator when encoding the local org
pull/7147/head
iglocska 2021-03-01 23:31:53 +01:00
parent d24e2a085a
commit ce88fd3ac2
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ class SharingGroup extends AppModel
}
unset($sg['Organisation']);
$creatorOrgFound = $this->captureSGOrgs($user, $sg, $sg_id, $forceUpdate);
$creatorOrgFound = $this->captureSGServers($user, $sg, $sg_id, $forceUpdate) && $creatorOrgFound;
$creatorOrgFound = $this->captureSGServers($user, $sg, $sg_id, $forceUpdate) || $creatorOrgFound;
if (!$creatorOrgFound && !empty($server)) {
$this->captureCreatorOrg($user, $sg_id);
}