rename foreign uuid attributes
[arvados.git] / apps / workbench / app / views / links / index.html.erb
index 08d175d753c7fb7a2937ca3e23570c9b7a571b12..76e959a2431bb8fba448274b7585fe9c3c8d995f 100644 (file)
@@ -37,7 +37,7 @@
       </td>
 
       <td>
-        <% if current_user and (current_user.is_admin or current_user.uuid == link.owner) %>
+        <% if current_user and (current_user.is_admin or current_user.uuid == link.owner_uuid) %>
         <%= link_to raw('<i class="icon-trash"></i>'), { action: 'destroy', id: link.uuid }, { confirm: 'Delete this link?', method: 'delete' } %>
         <% end %>
       </td>