We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1ee806 + 391d638 commit 7ec5b4eCopy full SHA for 7ec5b4e
src/main/java/com/iab/gdpr/consent/implementation/v1/ByteBufferBackedVendorConsent.java
@@ -100,8 +100,8 @@ public int getMaxVendorId() {
100
101
@Override
102
public boolean isPurposeAllowed(int purposeId) {
103
- if (purposeId < 1) return false;
104
- return getAllowedPurposeIds().contains(purposeId);
+ if (purposeId < 1 || purposeId > PURPOSES_SIZE) return false;
+ return bits.getBit(PURPOSES_OFFSET + purposeId - 1);
105
}
106
107
0 commit comments