Skip to content

Commit

Permalink
dont send rejected to cs_path, no need to check is pending CS to redi…
Browse files Browse the repository at this point in the history
…rect back
  • Loading branch information
mwvolo committed Jan 25, 2024
1 parent dd9a568 commit e279782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/newflow/educator_signup_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e279782

Please sign in to comment.