diff --git a/airflow/www/views.py b/airflow/www/views.py index 4c2d3d99aa5d1..a1c4865a3cab2 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -5247,6 +5247,8 @@ class DagRunModelView(AirflowPrivilegeVerifierModelView): class_permission_name = permissions.RESOURCE_DAG_RUN method_permission_name = { + "delete": "delete", + "edit": "edit", "list": "read", "action_clear": "edit", "action_muldelete": "delete", @@ -5625,6 +5627,7 @@ class TaskInstanceModelView(AirflowPrivilegeVerifierModelView): class_permission_name = permissions.RESOURCE_TASK_INSTANCE method_permission_name = { "list": "read", + "delete": "delete", "action_clear": "edit", "action_muldelete": "delete", "action_set_running": "edit",