Skip to content

The Open Source DocuSign Alternative.

fix: respect branding enabled for recipient routes (#3009)

Lucas Smithe8ed1c3d99d9
diff --git a/packages/lib/server-only/branding/load-recipient-branding.ts b/packages/lib/server-only/branding/load-recipient-branding.ts
index b9a58b68c..75b32dce1 100644
--- a/packages/lib/server-only/branding/load-recipient-branding.ts
+++ b/packages/lib/server-only/branding/load-recipient-branding.ts
@@ -31,9 +31,13 @@ export const loadRecipientBrandingByTeamId = async ({
billingEnabled ? getOrganisationClaimByTeamId({ teamId }).catch(() => null) : Promise.resolve(null),
]);
- const allowCustomBranding = !billingEnabled || claim?.flags?.embedSigningWhiteLabel === true;
+ let allowCustomBranding = !billingEnabled || claim?.flags?.embedSigningWhiteLabel === true;
const hidePoweredBy = !billingEnabled || claim?.flags?.hidePoweredBy === true;
+ if (!settings.brandingEnabled) {
+ allowCustomBranding = false;
+ }
+
if (!allowCustomBranding) {
return {
allowCustomBranding: false,