diff --git a/modules/storages/lib/api/v3/file_links/create_endpoint.rb b/modules/storages/lib/api/v3/file_links/create_endpoint.rb index f5f9ba07ca47..01cca97d0513 100644 --- a/modules/storages/lib/api/v3/file_links/create_endpoint.rb +++ b/modules/storages/lib/api/v3/file_links/create_endpoint.rb @@ -66,8 +66,13 @@ def process(request, params_elements) end def present_success(request, service_call) + file_links = service_call.all_results.map do |file_link| + file_link.origin_status = :view_allowed + file_link + end + render_representer.create( - service_call.all_results, + file_links, self_link: self_link(request), current_user: request.current_user )