From c5156f5ca393023aba8e42c4299cbb47cc5e2c8e Mon Sep 17 00:00:00 2001 From: zmagod Date: Wed, 15 Mar 2017 17:33:36 +0100 Subject: [PATCH] fixes bug with wopi contorller --- app/controllers/wopi_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/wopi_controller.rb b/app/controllers/wopi_controller.rb index 2f61f1aa8..4b0b4dfc6 100644 --- a/app/controllers/wopi_controller.rb +++ b/app/controllers/wopi_controller.rb @@ -51,7 +51,7 @@ class WopiController < ActionController::Base def check_file_info msg = { 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, UserId: @user.id.to_s, Version: @asset.version.to_s,