X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/783b5e3729228908d7404ae7404af1023501a906..f771df86d27214e6e6960583bc9e62e1c8afbe1f:/app/views/user_blocks/show.html.erb diff --git a/app/views/user_blocks/show.html.erb b/app/views/user_blocks/show.html.erb index 7b34d204a..7e225bf14 100644 --- a/app/views/user_blocks/show.html.erb +++ b/app/views/user_blocks/show.html.erb @@ -13,7 +13,7 @@ <% if current_user and current_user.id == @user_block.creator_id %>
  • <%= link_to t(".edit"), edit_user_block_path(@user_block) %>
  • <% end %> - <% if current_user and current_user.moderator? %> + <% if can?(:revoke, UserBlock) %>
  • <%= link_to(t(".revoke"), :controller => "user_blocks", :action => "revoke", :id => @user_block.id) %>
  • <% end %> <% end %>