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