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

Consents without page assigned shown as "ON" by default instead of "OFF" #204

Open
tyrann0us opened this issue Jun 22, 2018 · 0 comments
Open

Comments

@tyrann0us
Copy link
Contributor

tyrann0us commented Jun 22, 2018

Steps to reproduce

  1. Add consent without assigning a policy page to it
  2. Open website in incognito mode

Current behavior

The consent's switch is shown as "ON" but the gdpr[consent_types] cookie is just an empty object ([]) and has_consent() will return false for the given consent.

Expected behavior

The consent's switch should be shown as "OFF".

Notes

Workaround: Set an invalid consent in the gdpr[consent_types] cookie (e. g. ['foo']). This will cause the consent's switch to be shown as "OFF".

This is related to #202.

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

No branches or pull requests

1 participant