From 37b9a2c077fb434dcdd290b01d1310849b55df00 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Tue, 16 Jan 2024 10:39:11 +0100 Subject: [PATCH] Fix asset sync activity user [SCI-10018] --- app/controllers/asset_sync_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/asset_sync_controller.rb b/app/controllers/asset_sync_controller.rb index 59a26a8f9..d5e605943 100644 --- a/app/controllers/asset_sync_controller.rb +++ b/app/controllers/asset_sync_controller.rb @@ -126,7 +126,7 @@ class AssetSyncController < ApplicationController Activities::CreateActivityService .call(activity_type: type_of, - owner: User.first, + owner: current_user, subject: step.protocol, team: step.protocol.team, project: project,