Merge branch 'master' into 3088-project-chooser-on-run-pipeline-template
[arvados.git] / apps / workbench / app / views / application / _selection_checkbox.html.erb
index 7af11752c8e2540e439c0fdc1d7ce4d906b78080..de880dd8c6fbe95acad050a0c6c44d7eca3ac91d 100644 (file)
@@ -1,4 +1,4 @@
-<%if object %>
+<%if object and object.uuid and (object.class.goes_in_projects? or (object.is_a?(Link) and ArvadosBase::resource_class_for_uuid(object.head_uuid).to_s == 'Collection')) %>
   <% fn = if defined? friendly_name
             friendly_name
           else