aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFViewer.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-02 09:22:38 -0400
committerbobzel <zzzman@gmail.com>2020-08-02 09:22:38 -0400
commit63fd10d0940331d68a9ce58b4b77734b11e393f5 (patch)
tree62f9aba141a38d229c238c20f491d75720324591 /src/client/views/pdf/PDFViewer.tsx
parent4792b8875f27770882943c8dc0ef021d22a37c06 (diff)
fixed hiding of close button based on permsisions.
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r--src/client/views/pdf/PDFViewer.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx
index b81baf417..5a43a076b 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -568,7 +568,7 @@ export class PDFViewer extends ViewBoxAnnotatableComponent<IViewerProps, PdfDocu
const effectiveAcl = GetEffectiveAcl(this.props.Document);
const annotationDoc = [AclAddonly, AclEdit, AclAdmin].includes(effectiveAcl) && this.makeAnnotationDocument(color);
annotationDoc && this.addDocument?.(annotationDoc);
- return annotationDoc ?? undefined;
+ return annotationDoc as Doc ?? undefined;
}
/**