From e27978206e6105d47071a2b430672a07b44b1be3 Mon Sep 17 00:00:00 2001 From: Michael Harrison Date: Thu, 25 Jan 2024 11:10:04 -0600 Subject: [PATCH] dont send rejected to cs_path, no need to check is pending CS to redirect back --- app/controllers/newflow/educator_signup_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/newflow/educator_signup_controller.rb b/app/controllers/newflow/educator_signup_controller.rb index 004b83eb4..085acc1dc 100644 --- a/app/controllers/newflow/educator_signup_controller.rb +++ b/app/controllers/newflow/educator_signup_controller.rb @@ -180,9 +180,9 @@ def store_if_sheerid_is_unviable_for_user def exit_signup_if_steps_complete case true - when current_user.is_educator_pending_cs_verification? && !current_user.confirmed_faculty? + when current_user.is_educator_pending_cs_verification? && (!current_user.confirmed_faculty? || !current_user.rejected_faculty?) redirect_to(educator_pending_cs_verification_path) - when current_user.is_educator_pending_cs_verification? && current_user.confirmed_faculty? + when current_user.confirmed_faculty? redirect_back(fallback_location: profile_newflow_path) when action_name == 'educator_sheerid_form' && (current_user.step_3_complete? || current_user.is_sheerid_unviable?) redirect_to(educator_profile_form_path)