diff options
| author | bobzel <zzzman@gmail.com> | 2020-09-21 20:42:51 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-09-21 20:42:51 -0400 |
| commit | 02029b5cad1c27e65630a63cd4d2b632ed6973cd (patch) | |
| tree | cd27677288326d9c8e88c6c988e1d5266265ee1a /src/client/views/collections/CollectionView.tsx | |
| parent | 51aab84bc8814ea1be6aed3eca02da3ec00a280b (diff) | |
changed acls so that only an admin owner distributes them when a doc is added. changed default acls to be Add by default when not in private mode. restored filtering from search bar for developer mode.
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index c9496d374..e35474b81 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -144,7 +144,8 @@ export class CollectionView extends Touchable<FieldViewProps & CollectionViewCus added.forEach(d => { for (const [key, value] of Object.entries(this.props.Document[AclSym])) { if (d.author === key.substring(4).replace("_", ".") && !d.aliasOf) distributeAcls(key, SharingPermissions.Admin, d, true); - else distributeAcls(key, this.AclMap.get(value) as SharingPermissions, d, true); + else if (this.props.Document[key] === SharingPermissions.Admin) distributeAcls(key, SharingPermissions.Add, d, true); + //else distributeAcls(key, this.AclMap.get(value) as SharingPermissions, d, true); } }); } |
