X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e5d8bd539f045db1870a4722290f75b11cf4d2e0..6c22bf4b9afb26af56430ec9f9e191502fb0ee60:/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 %>