Fix creating WOPI file [SCI-7014] ()

This commit is contained in:
ajugo 2022-07-27 15:02:42 +02:00 committed by GitHub
parent 4012f0d7a3
commit 46f90c3c36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ class AssetSerializer < ActiveModel::Serializer
)
end
if wopi && can_manage_asset?(@user, object)
urls[:wopi_action] = object.get_action_url(@instance_options[:user], 'embedview')
urls[:wopi_action] = object.get_action_url(@user, 'embedview')
end
urls[:blob] = rails_blob_path(object.file, disposition: 'attachment') if object.file.attached?