X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3d7eb387a7c3573f1a1d17df00adcaa1fb9b9fa5..065564621bb8d8bac8823cf3e600c511e7118076:/app/views/user_blocks/blocks_by.html.erb diff --git a/app/views/user_blocks/blocks_by.html.erb b/app/views/user_blocks/blocks_by.html.erb index a8d761288..d2f888e7d 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 => (@user and @user.moderator?), :show_user_name => true, :show_creator_name => false } %> +<%= render :partial => 'blocks', :locals => { :show_revoke_link => (current_user and current_user.moderator?), :show_user_name => true, :show_creator_name => false } %> <% else %>

<%= t "user_block.blocks_by.empty", :name => h(@this_user.display_name) %>

<% end %>