app/helpers/consumer_roles_helper.rb
def ridp_redirection_link(person)
    consumer_redirection_path = EnrollRegistry.feature_enabled?(:financial_assistance) ? help_paying_coverage_insured_consumer_role_index_path : insured_family_members_path(consumer_role_id: person.consumer_role.id)
    consumer = person.consumer_role
    app_type = person.primary_family.application_type
    admin_user =  current_user.has_hbx_staff_role?
    id_verified = consumer.identity_verified?
    app_verified = consumer.application_verified?
    return consumer_redirection_path if app_verified || id_verified
    consumer.admin_bookmark_url
  end
# Allow flow to the next page if app or ID verified, otherwise stay on the same page
Allow flow to the next page if app or ID verified, otherwise stay on the same page
Allow flow to the next page if app or ID verified otherwise stay on the same page
def ridp_redirection_link(person)
    consumer_redirection_path = EnrollRegistry.feature_enabled?(:financial_assistance) ? help_paying_coverage_insured_consumer_role_index_path : insured_family_members_path(consumer_role_id: person.consumer_role.id)
    consumer = person.consumer_role
    app_type = person.primary_family.application_type
    admin_user =  current_user.has_hbx_staff_role?
    id_verified = consumer.identity_verified?
    app_verified = consumer.application_verified?
    return consumer_redirection_path if app_verified || id_verified
    consumer.admin_bookmark_url
  end
def ridp_redirection_link ( person ) consumer_redirection_path = EnrollRegistry . feature_enabled? ( :financial_assistance ) ? help_paying_coverage_insured_consumer_role_index_path : insured_family_members_path ( consumer_role_id : person . consumer_role . id ) consumer = person . consumer_role app_type = person . primary_family . application_type admin_user = current_user . has_hbx_staff_role? id_verified = consumer . identity_verified? app_verified = consumer . application_verified? return consumer_redirection_path if app_verified || id_verified consumer . admin_bookmark_url end
Allow flow to the next page if app or ID verified, otherwise stay on the same page
Allow flow to the next page if app or ID verified otherwise stay on the same page
person