diff options
author | bobzel <zzzman@gmail.com> | 2022-06-13 20:11:12 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-06-13 20:11:12 -0400 |
commit | 18fb08801442e6d1d98eb3a7de20f654be56d6ac (patch) | |
tree | 959dc85a9d0ba3f51999a4d0feb624a2bd5270a1 /src/client/views/DocComponent.tsx | |
parent | 04fd9f20ccdc204dad5724008b076cbf9ea7b874 (diff) |
fixed adding annotations when in augment mode to rtfsocsvvvvvvvvdssssdc. cw22121q`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
Diffstat (limited to 'src/client/views/DocComponent.tsx')
-rw-r--r-- | src/client/views/DocComponent.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocComponent.tsx b/src/client/views/DocComponent.tsx index 80835447d..8486b3d62 100644 --- a/src/client/views/DocComponent.tsx +++ b/src/client/views/DocComponent.tsx @@ -183,7 +183,7 @@ export function ViewBoxAnnotatableComponent<P extends ViewBoxAnnotatableProps>() const targetDataDoc = this.props.Document[DataSym]; const docList = DocListCast(targetDataDoc[annotationKey ?? this.annotationKey]); const added = docs.filter(d => !docList.includes(d)); - const effectiveAcl = GetEffectiveAcl(this.dataDoc); + const effectiveAcl = GetEffectiveAcl(targetDataDoc); if (added.length) { if (effectiveAcl === AclPrivate || effectiveAcl === AclReadonly) { |