Skip to content

Commit

Permalink
[#52039] after file link creation response sets status to view_allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharonus committed Jan 10, 2024
1 parent 3706206 commit dc9c484
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/storages/lib/api/v3/file_links/create_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit dc9c484

Please sign in to comment.