Merge branch '20470-contents-select' refs #20470
[arvados.git] / services / api / app / controllers / arvados / v1 / schema_controller.rb
index 34dfe966b0a38a7d347eb7427706d35b12465557..4d15cb121524e530adf0008d8c62deac6b8cad91 100644 (file)
@@ -127,7 +127,7 @@ class Arvados::V1::SchemaController < ApplicationController
       end
       object_properties = {}
       k.columns.
-        select { |col| col.name != 'id' && !col.name.start_with?('secret_') }.
+        select { |col| k.selectable_attributes.include? col.name }.
         collect do |col|
         if k.serialized_attributes.has_key? col.name
           object_properties[col.name] = {