Skip to content

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

fix

Marc Seitz89ac5b16fdf5
diff --git a/pages/api/webhooks/services/[...path]/index.ts b/pages/api/webhooks/services/[...path]/index.ts
index d41131ef..46fddacc 100644
--- a/pages/api/webhooks/services/[...path]/index.ts
+++ b/pages/api/webhooks/services/[...path]/index.ts
@@ -449,10 +449,10 @@ async function handleDocumentCreate(
// For group links, ignore allow/deny lists from presets as access is controlled by group membership
allowList: isGroupAudience
? link.allowList
- : link.allowList || preset?.allowList,
+ : (link.allowList ?? preset?.allowList),
denyList: isGroupAudience
? link.denyList
- : link.denyList || preset?.denyList,
+ : (link.denyList ?? preset?.denyList),
...(preset?.enableCustomMetaTag && {
enableCustomMetatag: preset?.enableCustomMetaTag,
metaTitle: preset?.metaTitle,