mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 21:21:50 +08:00
Fixed typos in clone experiment action [SCI-10232]
This commit is contained in:
parent
41df10a2ee
commit
fc441bbfaa
1 changed files with 2 additions and 2 deletions
|
@ -257,10 +257,10 @@ class ExperimentsController < ApplicationController
|
||||||
# POST: clone_experiment(id)
|
# POST: clone_experiment(id)
|
||||||
def clone
|
def clone
|
||||||
@project = current_team.projects.find(move_experiment_param)
|
@project = current_team.projects.find(move_experiment_param)
|
||||||
return render_403 unless can_create_project_experiments?(project)
|
return render_403 unless can_create_project_experiments?(@project)
|
||||||
|
|
||||||
service = Experiments::CopyExperimentAsTemplateService.call(experiment: @experiment,
|
service = Experiments::CopyExperimentAsTemplateService.call(experiment: @experiment,
|
||||||
project: project,
|
project: @project,
|
||||||
user: current_user)
|
user: current_user)
|
||||||
|
|
||||||
if service.succeed?
|
if service.succeed?
|
||||||
|
|
Loading…
Reference in a new issue