From f986a0ed5641187256431e68e2a38b059630fa87 Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Tue, 2 Jun 2020 11:40:30 +0200 Subject: [PATCH] Fix owner team for snapshots --- app/models/repository.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/repository.rb b/app/models/repository.rb index 0522a47fb..e5e9bb33e 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -196,6 +196,7 @@ class Repository < RepositoryBase original_repository: self, my_module: my_module, created_by: created_by, + team: my_module.experiment.project.team, permission_level: Extends::SHARED_INVENTORIES_PERMISSION_LEVELS[:not_shared]) repository_snapshot.provisioning! repository_snapshot.reload