14988: Restores debug message when accessing non-loaded attributes.
[arvados.git] / apps / workbench / app / views / trash_items / _show_trash_rows.html.erb
index 7d7bf7b82404eea975fe04a289195f11d3364a17..dd451b6eac1af0ed657069836bea1e61eab86025 100644 (file)
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
 <% @objects.each do |obj| %>
   <tr data-object-uuid="<%= obj.uuid %>" data-kind="<%= obj.kind %>" >
     <td>
-      <% if obj.editable? %>
+      <% if obj.editable? and obj.is_trashed %>
         <%= check_box_tag 'uuids[]', obj.uuid, false, :class => 'persistent-selection', style: 'cursor: pointer;' %>
       <% end %>
     </td>