diff options
Diffstat (limited to 'app/controllers/projects/ml/experiments_controller.rb')
-rw-r--r-- | app/controllers/projects/ml/experiments_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects/ml/experiments_controller.rb b/app/controllers/projects/ml/experiments_controller.rb index dece3f98c57..a620e9919e7 100644 --- a/app/controllers/projects/ml/experiments_controller.rb +++ b/app/controllers/projects/ml/experiments_controller.rb @@ -5,7 +5,7 @@ module Projects class ExperimentsController < ::Projects::ApplicationController include Projects::Ml::ExperimentsHelper - before_action :check_feature_flag + before_action :check_feature_enabled before_action :set_experiment, only: [:show, :destroy] feature_category :mlops @@ -55,8 +55,8 @@ module Projects private - 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 def set_experiment |