Skip to content

Commit

Permalink
Ensure OL task outcome is specific to identity confirmation and OL
Browse files Browse the repository at this point in the history
  • Loading branch information
kenfodder committed Sep 7, 2024
1 parent a9b3884 commit 6914b0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/models/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ class Task < ApplicationRecord
def to_param
name
end

def identity_confirmation?
name == "identity_confirmation"
end
end
2 changes: 1 addition & 1 deletion app/views/admin/tasks/_task_outcome.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
This task was performed by <%= user_details(task.created_by, include_line_break: false) %> on <%= l(task.updated_at) %>
<% elsif task.created_by %>
This task was performed by an automated check uploaded by <%= user_details(task.created_by, include_line_break: false) %> on <%= l(task.created_at) %>
<% elsif task.claim.identity_confirmed_with_onelogin? %>
<% elsif task.identity_confirmation? && task.claim.identity_confirmed_with_onelogin? %>
This task was performed by GOV.UK One Login on <%= l(task.claim.onelogin_idv_at) %>
<% else %>
This task was performed by an automated check on <%= l(task.created_at) %>
Expand Down

0 comments on commit 6914b0f

Please sign in to comment.