diff options
Diffstat (limited to 'lib/api/ml/mlflow/entrypoint.rb')
-rw-r--r-- | lib/api/ml/mlflow/entrypoint.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/ml/mlflow/entrypoint.rb b/lib/api/ml/mlflow/entrypoint.rb index 7948949dac6..3e0cb723580 100644 --- a/lib/api/ml/mlflow/entrypoint.rb +++ b/lib/api/ml/mlflow/entrypoint.rb @@ -27,7 +27,8 @@ module API authenticate! - not_found! unless can?(current_user, :read_model_experiments, user_project) + check_api_read! + check_api_write! unless request.get? || request.head? end rescue_from ActiveRecord::ActiveRecordError do |e| |