mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-04-02 18:31:30 +08:00
Fix creating WOPI file [SCI-7014] (#4293)
This commit is contained in:
parent
4012f0d7a3
commit
46f90c3c36
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue