Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: hide upload if not allowed

Marc Seitz3f46dba57ac2
diff --git a/components/view/dataroom/dataroom-view.tsx b/components/view/dataroom/dataroom-view.tsx
index ba3d4f2d..97f5547a 100644
--- a/components/view/dataroom/dataroom-view.tsx
+++ b/components/view/dataroom/dataroom-view.tsx
@@ -294,7 +294,10 @@ export default function DataroomView({
if (submitted) {
return (
- <PendingUploadsProvider linkId={link.id} dataroomId={dataroom?.id}>
+ <PendingUploadsProvider
+ linkId={viewData.enableVisitorUpload ? link.id : undefined}
+ dataroomId={viewData.enableVisitorUpload ? dataroom?.id : undefined}
+ >
<div
className="min-h-screen bg-white"
style={{ backgroundColor: dataroomViewBackgroundColor ?? undefined }}