Skip to content

Commit

Permalink
Allow admins to handle received LoPS
Browse files Browse the repository at this point in the history
It will become the job of admins to handle a received LoPS and make a
decision about the application.
  • Loading branch information
thomasleese committed Sep 28, 2023
1 parent 26755ab commit 09bdbbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/lib/application_form_status_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/application_form_status_updater_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 09bdbbc

Please sign in to comment.