mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-01 20:48:23 +08:00
Fix copy experiment only to active projects [SCI-7345]
This commit is contained in:
parent
6abfc8d293
commit
91c46e2005
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue