Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdprEnforcement: check for vendor LI in addition to purpose LI #10367

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

dgirardi
Copy link
Collaborator

Type of change

  • Bugfix

Description of change

For GDPR purpose 2 (basic ads), we have a special case that allows bidders into the auction if the CMP reports legitimate interest for purpose 2.

This updates that logic to check that in addition to purpose 2 LI, we also have vendor LI (as long as the enforcement config is set up to enforce vendor consent).

Other information

Closes #10359

if (purposeId === 2) {
return (purposeAllowed && vendorAllowed) || (liTransparency === true);
purposeAllowed ||= !!deepAccess(consentData, `vendorData.purpose.legitimateInterests.${purposeId}`);
vendorAllowed ||= !!deepAccess(consentData, `vendorData.vendor.legitimateInterests.${gvlId}`);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consent Management: auction not cancelled for vendor not in tcf string
5 participants