From 09bdbbc1145ea2cfd872b68f17ee994a14ae3bce Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Wed, 27 Sep 2023 13:18:21 +0100 Subject: [PATCH] Allow admins to handle received LoPS It will become the job of admins to handle a received LoPS and make a decision about the application. --- app/lib/application_form_status_updater.rb | 8 ++++---- spec/lib/application_form_status_updater_spec.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/lib/application_form_status_updater.rb b/app/lib/application_form_status_updater.rb index 01ac70b745..699cac4c46 100644 --- a/app/lib/application_form_status_updater.rb +++ b/app/lib/application_form_status_updater.rb @@ -180,12 +180,12 @@ def action_required_by application_form.declined_at.present? || application_form.awarded_at.present? "none" - elsif preliminary_check? + elsif preliminary_check? || over_lops || received_lops "admin" elsif dqt_trn_request.present? || overdue_further_information || - overdue_lops || overdue_qualification || overdue_reference || - received_further_information || received_lops || - received_qualification || received_reference + overdue_qualification || overdue_reference || + received_further_information || received_qualification || + received_reference "assessor" elsif waiting_on_further_information || waiting_on_lops || waiting_on_qualification || waiting_on_reference diff --git a/spec/lib/application_form_status_updater_spec.rb b/spec/lib/application_form_status_updater_spec.rb index d5e64460e1..2fb36ef8ce 100644 --- a/spec/lib/application_form_status_updater_spec.rb +++ b/spec/lib/application_form_status_updater_spec.rb @@ -240,7 +240,7 @@ create(:professional_standing_request, :received, assessment:) end - include_examples "changes action required by", "assessor" + include_examples "changes action required by", "admin" include_examples "changes stage", "verification" include_examples "changes statuses", %w[received_lops] include_examples "changes status", "received"