Skip to content

Commit

Permalink
Fix #11308
Browse files Browse the repository at this point in the history
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
  • Loading branch information
harupy committed Mar 4, 2024
1 parent 3a42259 commit cfa7187
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mlflow/server/auth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ def validate_can_update_experiment_artifact_proxy():
return _get_permission_from_experiment_id_artifact_proxy().can_update


def validate_can_delete_experiment_artifact_proxy():
return _get_permission_from_experiment_id_artifact_proxy().can_manage


def validate_can_read_run():
return _get_permission_from_run_id().can_read

Expand Down Expand Up @@ -416,7 +420,7 @@ def _get_proxy_artifact_validator(
return {
"GET": validate_can_read_experiment_artifact_proxy, # Download
"PUT": validate_can_update_experiment_artifact_proxy, # Upload
"DELETE": validate_can_update_experiment_artifact_proxy, # Delete
"DELETE": validate_can_delete_experiment_artifact_proxy, # Delete
}.get(method)


Expand Down

0 comments on commit cfa7187

Please sign in to comment.