aboutsummaryrefslogtreecommitdiff
path: root/src/client/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views')
-rw-r--r--src/client/views/DocComponent.tsx2
-rw-r--r--src/client/views/PropertiesView.tsx4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/DocComponent.tsx b/src/client/views/DocComponent.tsx
index 98aa9f880..6f350e0fc 100644
--- a/src/client/views/DocComponent.tsx
+++ b/src/client/views/DocComponent.tsx
@@ -199,7 +199,7 @@ export function ViewBoxAnnotatableComponent<P extends ViewBoxAnnotatableProps>()
const permissionString = StrCast(Doc.GetProto(this.props.Document)[key])
const permissionSymbol = ReverseHierarchyMap.get(permissionString)!.acl
const permission = HierarchyMapping.get(permissionSymbol)!.name
- distributeAcls(key, permission, d)
+ distributeAcls(key, permission, Doc.GetProto(d))
}
})
);
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx
index 825a802cd..6bca08d23 100644
--- a/src/client/views/PropertiesView.tsx
+++ b/src/client/views/PropertiesView.tsx
@@ -425,12 +425,14 @@ export class PropertiesView extends React.Component<PropertiesViewProps> {
* @returns the sharing and permissions panel.
*/
@computed get sharingTable() {
+ console.log('doc', this.selectedDoc)
+ console.log('proto', Doc.GetProto(this.selectedDoc!))
// all selected docs
const docs =
SelectionManager.Views().length < 2 && this.selectedDoc ? [this.layoutDocAcls ? this.selectedDoc : this.dataDoc!] : SelectionManager.Views().map(docView => (this.layoutDocAcls ? docView.props.Document : docView.props.Document[DocData]));
const target = docs[0];
- const showAdmin = GetEffectiveAcl(this.selectedDoc!) == AclAdmin
+ const showAdmin = GetEffectiveAcl(target) == AclAdmin
const individualTableEntries = [];
const usersAdded: string[] = []; // all shared users being added - organized by denormalized email