Commit 2ae76872 authored by sfang97's avatar sfang97 Committed by serenafang

Don't render other delete buttons if pending

If pending approval, only need approve and reject buttons
parent 0a0d5580
......@@ -206,7 +206,7 @@
%p This user has been temporarily locked due to excessive number of failed logins. You may manually unlock the account.
%br
= link_to 'Unlock user', unlock_admin_user_path(@user), method: :put, class: "btn gl-button btn-info", data: { confirm: 'Are you sure?' }
- if !@user.blocked_pending_approval?
.card.border-danger
.card-header.bg-danger.text-white
= s_('AdminUsers|Delete user')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment