Skip to content

Commit

Permalink
Commented logWarns for consent
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-azhar-mulla authored and pm-azhar-mulla committed May 3, 2023
1 parent a7124c4 commit a085429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/gpdr.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import {deepAccess, logWarn} from '../utils.js';
export function hasPurpose1Consent(gdprConsent) {
logWarn(`Privacy - checking purpose1Consent - ${gdprConsent}`);
if(gdprConsent === null) {
logWarn(`Privacy - gdprConsent is null, checking value of defaultGdprScope = ${owpbjs?.getConfig().consentManagement?.gdpr?.defaultGdprScope}`);
//logWarn(`Privacy - gdprConsent is null, checking value of defaultGdprScope = ${owpbjs?.getConfig().consentManagement?.gdpr?.defaultGdprScope}`);
return !(owpbjs?.getConfig().consentManagement?.gdpr?.defaultGdprScope === true)
}
if (gdprConsent?.gdprApplies) {
logWarn(`Privacy - gdprConsent?.gdprApplies = ${gdprConsent?.gdprApplies} and purpose consent = ${gdprConsent.vendorData.purpose.consents}`);
//logWarn(`Privacy - gdprConsent?.gdprApplies = ${gdprConsent?.gdprApplies} and purpose consent = ${gdprConsent.vendorData.purpose.consents}`);
return deepAccess(gdprConsent, 'vendorData.purpose.consents.1') === true;
}
return true;
Expand Down

0 comments on commit a085429

Please sign in to comment.