From dd13a4a58515561da44e12d7c481e6249f7c05e8 Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Tue, 9 Sep 2025 11:56:57 +0100 Subject: [PATCH] CLDC-4044: Add clarifying comment --- app/views/users/show.html.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index e9f5855bb..a1f104b10 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -154,6 +154,9 @@
<% if @user.active? %> <%= govuk_button_link_to "Deactivate user", deactivate_user_path(@user), warning: true %> + <%# Some users are confirmed but have no sign in date, since logging in is a separate step that happens after confirmation %> + <%# Some users are unconfirmed but have a sign in date, since deactivating an account will unconfirm but not reset login date %> + <%# So, allow both cases to receive invite links %> <% if current_user.support? && (@user.last_sign_in_at.nil? || !@user.confirmed?) %> <%= govuk_button_to "Resend invite link", resend_invite_user_path(@user), secondary: true %> <% end %>