X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/49da87fb6d2a9fe8c033a41cd935ee34a8767293..3159c3c3f715250ef97e468eb155b868322b0426:/app/views/users/show.html.erb?ds=sidebyside diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 5090cbee0..7e8b45185 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -35,7 +35,7 @@ <% end %> - <% if current_user and current_user.moderator? and current_user.blocks_created.exists? %> + <% if can?(:create, UserBlock) and current_user.blocks_created.exists? %>