Skip to content

Commit b019733

Browse files
Fix reading CMP permissions
1 parent af01bb4 commit b019733

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

audienceproject-data-web.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export const fetch = (customerId, _options, callback) => {
203203
options.consentString = model.tcString || '';
204204

205205
if (options.gdprApplies) {
206-
const hasVendor = model.vendors?.consents?.[vendorId];
206+
const hasVendor = model.vendor?.consents?.[vendorId];
207207

208208
options.allowStorageAccess = Boolean(hasVendor && model.purpose?.consents?.[1]);
209209
options.allowPersonalisation = Boolean(hasVendor && model.purpose?.consents?.[3]);

test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
3: true
2727
}
2828
},
29-
vendors: {
29+
vendor: {
3030
consents: {
3131
394: true
3232
}

0 commit comments

Comments
 (0)