Skip to content

Commit 8d3bbab

Browse files
committed
Ask users to choose to take part in research
Redirect any user who does not have contact_for_research set to the page to set it.
1 parent 7928c90 commit 8d3bbab

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/lib/after_sign_in_path_helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ def next_account_path
88

99
return edit_account_name_path if current_user.name.blank?
1010

11-
edit_account_terms_of_use_path if current_user.terms_agreed_at.blank?
11+
return edit_account_terms_of_use_path if current_user.terms_agreed_at.blank?
12+
13+
edit_account_contact_for_research_path if current_user.research_contact_to_be_asked?
1214
end
1315

1416
def store_location(path)

0 commit comments

Comments
 (0)