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