mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 03:36:44 +08:00
Merge pull request #515 from ZmagoD/file_owner_id_bug
fixes bug with wopi contorller
This commit is contained in:
commit
1afb4c9a42
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class WopiController < ActionController::Base
|
||||||
def check_file_info
|
def check_file_info
|
||||||
msg = {
|
msg = {
|
||||||
BaseFileName: @asset.file_file_name,
|
BaseFileName: @asset.file_file_name,
|
||||||
OwnerId: @asset.created_by_id.to_s,
|
OwnerId: @asset.created_by_id.to_s || @asset.id.to_s,
|
||||||
Size: @asset.file_file_size,
|
Size: @asset.file_file_size,
|
||||||
UserId: @user.id.to_s,
|
UserId: @user.id.to_s,
|
||||||
Version: @asset.version.to_s,
|
Version: @asset.version.to_s,
|
||||||
|
|
Loading…
Reference in a new issue