Merge pull request #2634 from aignatov-bio/ai-sci-4719-fix-owner-team-for-snapshots

Fix owner team for snapshots [SCI-4719]
This commit is contained in:
Miha Mencin 2020-06-02 12:05:04 +02:00 committed by GitHub
commit ca669263bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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