fix: [sharinggroup:captureSG] Correctly capture the roaming state

Fix #7254
pull/7259/head
mokaddem 2021-03-25 16:33:53 +01:00
parent f42b1fce3b
commit 0653761e2d
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -725,7 +725,7 @@ class SharingGroup extends AppModel
'created' => !isset($sg['created']) ? $date : $sg['created'],
'modified' => !isset($sg['modified']) ? $date : $sg['modified'],
'active' => !isset($sg['active']) ? 1 : $sg['active'],
'roaming' => !isset($sg['description']) ? false : $sg['description'],
'roaming' => !isset($sg['roaming']) ? false : $sg['roaming'],
'local' => 0,
'sync_user_id' => $user['id'],
'org_id' => $user['Role']['perm_sync'] ? $this->__retrieveOrgIdFromCapturedSG($user, $sg) : $user['org_id']