aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-07-08 09:19:16 -0400
committerbobzel <zzzman@gmail.com>2023-07-08 09:19:16 -0400
commit0007d043f7f27ce7d1103198ecb0e95e81362619 (patch)
treed803f1c4af18770a0cb4348dbec4bc72ffc5dec3 /src/client/views/collections
parentcf88809ea2299395db70ce608c193df7f24f0fb2 (diff)
fixed adding tabs to not try to distribute acls (this is done through adding a Doc to the docking view's Doc list).
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/CollectionDockingView.tsx9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx
index 30bc8cbec..77b719d53 100644
--- a/src/client/views/collections/CollectionDockingView.tsx
+++ b/src/client/views/collections/CollectionDockingView.tsx
@@ -500,15 +500,6 @@ export class CollectionDockingView extends CollectionSubView() {
}
};
tabCreated = (tab: any) => {
- const aclKeys = Object.keys(Doc.GetProto(this.rootDoc)[DocAcl] ?? {});
- aclKeys
- .filter(key => key !== 'acl-Me')
- .forEach(key => {
- const permissionString = StrCast(Doc.GetProto(this.props.Document)[key]);
- const permissionSymbol = ReverseHierarchyMap.get(permissionString)!.acl;
- const permission = HierarchyMapping.get(permissionSymbol)!.name;
- distributeAcls(key, permission, tab);
- });
this.tabMap.add(tab);
tab.contentItem.element[0]?.firstChild?.firstChild?.InitTab?.(tab); // have to explicitly initialize tabs that reuse contents from previous tabs (ie, when dragging a tab around a new tab is created for the old content)
};