Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/ml/candidates_controller.rb')
-rw-r--r--app/controllers/projects/ml/candidates_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects/ml/candidates_controller.rb b/app/controllers/projects/ml/candidates_controller.rb
index e534000f494..ed7155fc5f4 100644
--- a/app/controllers/projects/ml/candidates_controller.rb
+++ b/app/controllers/projects/ml/candidates_controller.rb
@@ -3,7 +3,7 @@
module Projects
module Ml
class CandidatesController < ApplicationController
- before_action :check_feature_flag, :set_candidate
+ before_action :check_feature_enabled, :set_candidate
feature_category :mlops
@@ -26,8 +26,8 @@ module Projects
render_404 unless @candidate.present?
end
- def check_feature_flag
- render_404 unless Feature.enabled?(:ml_experiment_tracking, @project)
+ def check_feature_enabled
+ render_404 unless can?(current_user, :read_model_experiments, @project)
end
end
end