mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-09 06:04:46 +08:00
Fix rendering of WOPI files [SCI-6936] (#4235)
This commit is contained in:
parent
a575487271
commit
15e812a358
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class AssetSerializer < ActiveModel::Serializer
|
|||
delete: asset_destroy_path(object)
|
||||
)
|
||||
end
|
||||
if wopi && can_manage_asset?(@asset)
|
||||
if wopi && can_manage_asset?(object)
|
||||
urls[:wopi_action] = object.get_action_url(@instance_options[:user], 'embedview')
|
||||
end
|
||||
urls[:blob] = rails_blob_path(object.file, disposition: 'attachment') if object.file.attached?
|
||||
|
|
Loading…
Reference in a new issue