From fc441bbfaa7b80e43d6faf26c6be421fb6b4bc79 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Mon, 19 Feb 2024 10:46:47 +0100 Subject: [PATCH] Fixed typos in clone experiment action [SCI-10232] --- app/controllers/experiments_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/experiments_controller.rb b/app/controllers/experiments_controller.rb index f7ded1a67..6dbe5e0e0 100644 --- a/app/controllers/experiments_controller.rb +++ b/app/controllers/experiments_controller.rb @@ -257,10 +257,10 @@ class ExperimentsController < ApplicationController # POST: clone_experiment(id) def clone @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, - project: project, + project: @project, user: current_user) if service.succeed?