Browse Source

Don't show reinvite button to confirmed users

pull/1831/head
Jack S 3 years ago
parent
commit
69978e3f28
  1. 2
      app/views/users/show.html.erb

2
app/views/users/show.html.erb

@ -107,7 +107,7 @@
<% if current_user.can_toggle_active?(@user) %>
<% if @user.active? %>
<%= govuk_button_link_to "Deactivate user", deactivate_user_path(@user), warning: true %>
<% if current_user.support? %>
<% if current_user.support? && !@user.confirmed? %>
<%= govuk_button_to "Resend invite link", resend_invite_user_path(@user), secondary: true %>
<% end %>
<% else %>

Loading…
Cancel
Save