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

Opt Out Petition Emails Under 16 #22671

Merged
merged 2 commits into from May 25, 2018
Merged

Conversation

sureshc
Copy link
Contributor

@sureshc sureshc commented May 24, 2018

Set EmailPreference.opt_in to false for email addresses submitted via Petition by people who were younger than 16 to comply with GDPR.

email: petition[:email],
opt_in: false,
source: EmailPreferenceHelper::AUTOMATED_OPT_OUT_UNDER_16,
ip_address: '127.0.0.1',
Copy link
Member

Choose a reason for hiding this comment

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

Can we use the IP address recorded when the form was saved?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're the ones making the decision to opt them out, so it seems more accurate to log "our" IP address?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, good point. Should we make that a constant indicating that case, and maybe even put it into EmailPreference?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Done!

@sureshc sureshc merged commit 3933ca9 into staging May 25, 2018
@sureshc sureshc deleted the opt-out-petition-emails-under-16 branch May 25, 2018 17:32
@sureshc
Copy link
Contributor Author

sureshc commented May 31, 2018

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.

None yet

2 participants