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 'lib/api/ml/mlflow/experiments.rb')
-rw-r--r--lib/api/ml/mlflow/experiments.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/ml/mlflow/experiments.rb b/lib/api/ml/mlflow/experiments.rb
index 614112f703b..1a501291941 100644
--- a/lib/api/ml/mlflow/experiments.rb
+++ b/lib/api/ml/mlflow/experiments.rb
@@ -9,6 +9,11 @@ module API
class Experiments < ::API::Base
feature_category :mlops
+ before do
+ check_api_read!
+ check_api_write! unless request.get? || request.head?
+ end
+
resource :experiments do
desc 'Fetch experiment by experiment_id' do
success Entities::Ml::Mlflow::GetExperiment