Merge pull request #4538 from aignatov-bio/ai-sci-7345-fix-copy-experiment-only-to-active-projects

Fix copy experiment only to active projects [SCI-7345]
This commit is contained in:
Alex Kriuchykhin 2022-10-17 15:56:42 +02:00 committed by GitHub
commit 0c81907ece
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,7 +202,7 @@ class ExperimentsController < ApplicationController
# GET: clone_modal_experiment_path(id)
def clone_modal
@projects = @experiment.project.team.projects
@projects = @experiment.project.team.projects.active
.with_user_permission(current_user, ProjectPermissions::EXPERIMENTS_CREATE)
respond_to do |format|
format.json do