OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#52039] after file link creation response sets status to view_allowed
Eric Schubertdc9c4848de9c
diff --git a/modules/storages/lib/api/v3/file_links/create_endpoint.rb b/modules/storages/lib/api/v3/file_links/create_endpoint.rbindex f5f9ba07ca4..01cca97d051 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 @@ class API::V3::FileLinks::CreateEndpoint < API::Utilities::Endpoints::Createenddef 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)