Merge pull request #7104 from artoscinote/ma_SCI_10232

Fixed typos in clone experiment action [SCI-10232]
This commit is contained in:
Martin Artnik 2024-02-19 10:50:06 +01:00 committed by GitHub
commit b0f5f0353d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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