diff options
| author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-07-21 23:16:49 +0530 |
|---|---|---|
| committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-07-21 23:16:49 +0530 |
| commit | 3d06cdd362d58dfbc8d6efdcd9dc59250ab003a4 (patch) | |
| tree | d2d261ff2c727be5f774cd01ced2d13f3ee4250b /src/client/views/collections/CollectionView.tsx | |
| parent | 35d50f895b59162f40cea644f97818579aace9e5 (diff) | |
distributeAcls only changes if container is more restrictive
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionView.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index 5cef6c44e..9b04deff5 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -151,11 +151,11 @@ export class CollectionView extends Touchable<FieldViewProps & CollectionViewCus if (this.props.Document[AclSym]) { // change so it only adds if more restrictive added.forEach(d => { - const dataDoc = d[DataSym]; + // const dataDoc = d[DataSym]; for (const [key, value] of Object.entries(this.props.Document[AclSym])) { - distributeAcls(key, this.AclMap.get(value) as SharingPermissions, d); + distributeAcls(key, this.AclMap.get(value) as SharingPermissions, d, true); } - dataDoc[AclSym] = d[AclSym] = this.props.Document[AclSym]; + // dataDoc[AclSym] = d[AclSym] = this.props.Document[AclSym]; }); } |
