From c2e3dc0b38ce2989192bcb3b50225ec3013469e9 Mon Sep 17 00:00:00 2001 From: Michael Harrison Date: Wed, 29 Nov 2023 11:11:51 -0600 Subject: [PATCH] check if user is signed in --- app/controllers/newflow/login_controller.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/controllers/newflow/login_controller.rb b/app/controllers/newflow/login_controller.rb index bb3dcbb6f..7bb6b7cf9 100644 --- a/app/controllers/newflow/login_controller.rb +++ b/app/controllers/newflow/login_controller.rb @@ -89,9 +89,11 @@ def cache_alternate_signup_url end def did_sign_privacy_notice - contract = FinePrint.get_contract(:privacy_policy) - unless contract.signed_by?(current_user) - redirect_to pose_term_url(name: contract.name, params: request.params) + if signed_in? + contract = FinePrint.get_contract(:privacy_policy) + unless contract.signed_by?(current_user) + redirect_to pose_term_url(name: contract.name, params: request.params) + end end end end