mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 03:36:44 +08:00
Fix WOPI action URL generation [SCI-11419]
This commit is contained in:
parent
7f473d508b
commit
43fade7dea
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…
Reference in a new issue