diff options
Diffstat (limited to 'app/controllers/projects/ml/candidates_controller.rb')
-rw-r--r-- | app/controllers/projects/ml/candidates_controller.rb | 6 |
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 |