Skip to content

Commit

Permalink
Allow admins to handle received LoPS
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleese committed Sep 27, 2023
1 parent 2e6a5eb commit 9bcaeae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/lib/application_form_status_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def status

def action_required_by
@action_required_by ||=
if status == "preliminary_check"
if status == "preliminary_check" || overdue_professional_standing ||
received_professional_standing
"admin"
elsif %w[
potential_duplicate_in_dqt
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 @@ -226,7 +226,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 status", "received"

Expand Down

0 comments on commit 9bcaeae

Please sign in to comment.