Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Apply double opt in only to petition actions #1174

Merged
merged 1 commit into from Jun 7, 2018
Merged

Conversation

osahyoun
Copy link
Member

@osahyoun osahyoun commented Jun 6, 2018

No description provided.

@@ -118,6 +118,7 @@ def requires_consent?

def requires_double_opt_in
return false if @params[:consented] == false
return false unless page.plugins.map(&:class).include? Plugins::Petition
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we only do this for petitions? (what about surveys? or are those still petitions)

Copy link
Member Author

Choose a reason for hiding this comment

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

This applies only to petitions. Surveys have their own plugin.

@osahyoun osahyoun merged commit 5bf3236 into development Jun 7, 2018
@osahyoun osahyoun deleted the fix.ignore_doubl branch June 7, 2018 10:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants