X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e4382e25d68a70a107baeb257e1915972759334c..a7f12322bab34a27863d90de9ddb95f69697bf29:/services/api/lib/current_api_client.rb diff --git a/services/api/lib/current_api_client.rb b/services/api/lib/current_api_client.rb index 37039ee654..4c26010d2a 100644 --- a/services/api/lib/current_api_client.rb +++ b/services/api/lib/current_api_client.rb @@ -173,12 +173,8 @@ module CurrentApiClient act_as_system_user do ActiveRecord::Base.transaction do $empty_collection = Collection. - where(uuid: empty_collection_uuid). - first_or_create!(manifest_text: '') - Link.where(tail_uuid: anonymous_group.uuid, - head_uuid: empty_collection_uuid, - link_class: 'permission', - name: 'can_read').first_or_create! + where(portable_data_hash: empty_collection_uuid). + first_or_create!(manifest_text: '', owner_uuid: anonymous_group.uuid) end end end