mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 16:45:18 +08:00
Fix WOPI action url [SCI-11325]
This commit is contained in:
parent
47a2598220
commit
ec6b586151
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ class Asset < ApplicationRecord
|
|||
|
||||
# Extract only the licenced user flag parameter
|
||||
is_licenced_user = ENV['WOPI_BUSINESS_USERS'] == 'true' && action_url.include?('IsLicensedUser=BUSINESS_USER')
|
||||
action_url = action_url.split('?').first + "?IsLicencedUser=#{is_licenced_user ? 1 : 0}"
|
||||
action_url = action_url.split('?').first + "?IsLicencedUser=#{is_licenced_user ? 1 : 0}&"
|
||||
|
||||
rest_url = Rails.application.routes.url_helpers.wopi_rest_endpoint_url(
|
||||
host: ENV['WOPI_ENDPOINT_URL'],
|
||||
|
|
Loading…
Add table
Reference in a new issue