From 988632fd67abc10375ad9fe2cbd8c9edccc609a5 Mon Sep 17 00:00:00 2001 From: Hussein Awala Date: Tue, 5 Sep 2023 09:49:56 +0200 Subject: [PATCH] Add missing audit logs for Flask actions add, edit and delete (#34090) --- airflow/www/views.py | 3 +++ 1 file changed, 3 insertions(+) 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",