From e35878a9b8ec5c2671343a74c4827ba63fc49624 Mon Sep 17 00:00:00 2001 From: Ivan Kljun Date: Thu, 15 Feb 2024 14:14:38 +0100 Subject: [PATCH] Fix saving last_modified_by for WOPI audit trails [SCI-10033] --- 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 949b15c59..6dbe4051e 100644 --- a/app/controllers/wopi_controller.rb +++ b/app/controllers/wopi_controller.rb @@ -201,8 +201,8 @@ class WopiController < ActionController::Base logger.warn 'WOPI: replacing file' @team.release_space(@asset.estimated_size) - @asset.update_contents(request.body) @asset.last_modified_by = @user + @asset.update_contents(request.body) @asset.save @team.take_space(@asset.estimated_size)