From 100c84732d26b9e1821a2e60e5d8f4ae4c01aeb0 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Tue, 8 Oct 2024 13:27:17 +0200 Subject: [PATCH] Fix WOPI file creation [SCI-11049] --- app/controllers/assets_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/assets_controller.rb b/app/controllers/assets_controller.rb index dfa46e7fe..52a5292a0 100644 --- a/app/controllers/assets_controller.rb +++ b/app/controllers/assets_controller.rb @@ -244,8 +244,7 @@ class AssetsController < ApplicationController asset = Asset.new(created_by: current_user, team: current_team) asset.attach_file_version(io: StringIO.new, filename: "#{params[:file_name]}.#{params[:file_type]}", - content_type: wopi_content_type(params[:file_type]), - current_user: current_user) + content_type: wopi_content_type(params[:file_type])) unless asset.valid?(:wopi_file_creation) render json: {