Skip to content

Commit

Permalink
Include waiting on LoPS persona status
Browse files Browse the repository at this point in the history
This allows us to sign in as a teacher where we're waiting on the LoPS
to be returned.
  • Loading branch information
thomasleese committed Mar 26, 2024
1 parent 079ce2d commit f749af8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/controllers/personas_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def load_staff_personas
%w[
draft
not_started
waiting_on_lops
waiting_on_consent
waiting_on_further_information
awarded
Expand Down Expand Up @@ -173,6 +174,11 @@ def load_teacher_personas

stage_or_status = persona[:stage_or_status]

if stage_or_status == "waiting_on_lops" &&
!application_form.teaching_authority_provides_written_statement
next
end

application_form.stage == stage_or_status ||
application_form.statuses.include?(stage_or_status)
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/personas/_teachers.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
row.with_cell(header: true, text: "Sanction check")
row.with_cell(header: true, text: "Stage/status")
row.with_cell(header: true, text: "Email address")
row.with_cell(header: true, text: "Actions", numeric: true)
row.with_cell(header: true)
end
end

Expand Down

0 comments on commit f749af8

Please sign in to comment.