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

RGPD consent not working when set to "ue" #617

Open
Nuxor3000 opened this issue Jan 27, 2022 · 1 comment
Open

RGPD consent not working when set to "ue" #617

Nuxor3000 opened this issue Jan 27, 2022 · 1 comment

Comments

@Nuxor3000
Copy link
Contributor

RGPD consent is shown when privacy_consent_required field is set to "all" but not when set to "ue"

In method needs_privacy_consent in messenger_type.rb :

The reason is that
context[:request]&.location and context[:request]&.location&.country_code
return an empty value

I don't understand, I don't find a location method for ActionDispatch::Request

@michelson
Copy link
Member

michelson commented Jan 27, 2022

Are you testing this on local env? there is a GEOIP gem that fills the request with the proper country code.
usually in the local environment, you will not get the country code due to your location will be localhost.
There is an env var for you to use the proper service for geo IP:
DEFAULT_GEOCODER_SERVICE=maxmind_local

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

2 participants