diff options
author | bobzel <zzzman@gmail.com> | 2020-08-17 17:44:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 17:44:18 -0400 |
commit | 39e49bbb6943a546123765f8969ea4f054157ae5 (patch) | |
tree | b0d5fea872d35d93cc5d1953006a3cf52dada43f /src | |
parent | 705a324e0e63bfaf36d813154871eba56b70242b (diff) | |
parent | 2e2ac8116f7ba41c8652ba1ca02ccdc4ca11ed03 (diff) |
Merge pull request #631 from browngraphicslab/acls_uv
Fixed datadoc bug
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/collectionFreeForm/PropertiesView.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/PropertiesView.tsx b/src/client/views/collections/collectionFreeForm/PropertiesView.tsx index 85a1d7137..ed451beab 100644 --- a/src/client/views/collections/collectionFreeForm/PropertiesView.tsx +++ b/src/client/views/collections/collectionFreeForm/PropertiesView.tsx @@ -383,11 +383,12 @@ export class PropertiesView extends React.Component<PropertiesViewProps> { [AclAdmin, SharingPermissions.Admin] ]); - const effectiveAcl = GetEffectiveAcl(this.selectedDoc!); + const target = this.layoutDocAcls ? this.selectedDoc! : this.selectedDoc![DataSym]; + + const effectiveAcl = GetEffectiveAcl(target); const tableEntries = []; // DocCastAsync(Doc.UserDoc().sidebarUsersDisplayed).then(sidebarUsersDisplayed => { - const target = this.layoutDocAcls ? this.selectedDoc! : this.selectedDoc![DataSym]; if (target[AclSym]) { for (const [key, value] of Object.entries(target[AclSym])) { const name = key.substring(4).replace("_", "."); |