mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 15:40:31 +08:00
Allow send wopi action without manage permission [SCI-9836] (#7178)
This commit is contained in:
parent
654b107965
commit
a9ceda717b
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ class AssetSerializer < ActiveModel::Serializer
|
|||
urls[:asset_checksum] = asset_checksum_path(object)
|
||||
end
|
||||
|
||||
urls[:wopi_action] = object.get_action_url(user, 'embedview') if wopi && can_manage_asset?(user, object)
|
||||
urls[:wopi_action] = object.get_action_url(user, 'embedview') if wopi && can_read_asset?(user, object)
|
||||
urls[:blob] = rails_blob_path(object.file, disposition: 'attachment') if object.file.attached?
|
||||
|
||||
urls
|
||||
|
|
Loading…
Reference in a new issue