@teamscala/service-boot 0.23.463 → 0.23.464
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/proposal-gate.ts +13 -0
package/package.json
CHANGED
package/src/proposal-gate.ts
CHANGED
|
@@ -178,6 +178,19 @@ export const proposalGateConfig: ContentGateConfig = {
|
|
|
178
178
|
headerData.row2Value = "";
|
|
179
179
|
headerData.row3Value = "";
|
|
180
180
|
}
|
|
181
|
+
// Neutralize the CRM contact record too. The v8 adapter ignores select
|
|
182
|
+
// (the full record returns), so without this the gate floor's hydration
|
|
183
|
+
// payload ships the recipient's whole contact row — first/last/full
|
|
184
|
+
// name, emails, phones, CRM ids — to every unauthorised visitor. The
|
|
185
|
+
// company fields stay: the header's Organisation row shows the company,
|
|
186
|
+
// which is brand chrome, not recipient identity.
|
|
187
|
+
const contact = resolved.contact as Record<string, unknown> | undefined;
|
|
188
|
+
if (contact) {
|
|
189
|
+
const keep = new Set(["id", "company_id", "company_name", "company_website"]);
|
|
190
|
+
for (const key of Object.keys(contact)) {
|
|
191
|
+
if (!keep.has(key)) contact[key] = "";
|
|
192
|
+
}
|
|
193
|
+
}
|
|
181
194
|
},
|
|
182
195
|
};
|
|
183
196
|
|