]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/users/show.html.erb
Add revoke all actions to received blocks resource
[rails.git] / app / views / users / show.html.erb
index 8b09c751e48f7902486e00b019da987171d66bec..c168972aac44a945a8118454ec5c97e807505bdc 100644 (file)
               </li>
             <% end %>
 
-            <% if can?(:revoke_all, UserBlock) and @user.blocks.active.exists? %>
+            <% if can?(:destroy, UserBlock) and @user.blocks.active.exists? %>
               <li>
-                <%= link_to t(".revoke_all_blocks"), revoke_all_user_blocks_path(@user) %>
+                <%= link_to t(".revoke_all_blocks"), edit_user_received_blocks_path(@user) %>
               </li>
             <% end %>