Skip to content

Commit

Permalink
check if user is signed in
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Nov 29, 2023
1 parent 7409db4 commit c2e3dc0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/controllers/newflow/login_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2e3dc0

Please sign in to comment.