Another spot where we need to move a Current.user check to a stimulus controller to cache
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
<hr class="flex-item-grow margin-none" aria-hidden="true">
|
||||
|
||||
<%# FIXME: Move this Current.user check to a stimulus controller that just checks for admin? or the like we so we can cache user list %>
|
||||
<%= button_to account_user_path(user), method: :delete, class: "btn btn--small btn--negative flex-item-no-shrink",
|
||||
disabled: !Current.user.can_remove?(user),
|
||||
data: { turbo_confirm: "Are you sure you want to permanently remove this person from the account?" } do %>
|
||||
|
||||
Reference in New Issue
Block a user