aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionView.tsx
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2020-09-22 13:51:49 +0530
committerusodhi <61431818+usodhi@users.noreply.github.com>2020-09-22 13:51:49 +0530
commita9dad1837ffa66b0da304dd2f6f5e35b3ab4a7b8 (patch)
tree69853de7a2a8faa597e12dd4e05a211b3c24b618 /src/client/views/collections/CollectionView.tsx
parent8fad5a8e842aaed6540d37f6a3a4ba3a3c2abe9b (diff)
parent02029b5cad1c27e65630a63cd4d2b632ed6973cd (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into acls_uv
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
-rw-r--r--src/client/views/collections/CollectionView.tsx3
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);
}
});
}