X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7cd73546730cc83e475d3d647116e444894fdcc4..f771df86d27214e6e6960583bc9e62e1c8afbe1f:/app/views/user_blocks/blocks_by.html.erb?ds=inline diff --git a/app/views/user_blocks/blocks_by.html.erb b/app/views/user_blocks/blocks_by.html.erb index 15d3c970f..284052a7b 100644 --- a/app/views/user_blocks/blocks_by.html.erb +++ b/app/views/user_blocks/blocks_by.html.erb @@ -4,7 +4,7 @@ <% end %> <% unless @user_blocks.empty? %> -<%= render :partial => "blocks", :locals => { :show_revoke_link => (current_user && current_user.moderator?), :show_user_name => true, :show_creator_name => false } %> +<%= render :partial => "blocks", :locals => { :show_revoke_link => can?(:revoke, UserBlock), :show_user_name => true, :show_creator_name => false } %> <% else %>
<%= t ".empty", :name => h(@user.display_name) %>
<% end %>