From 2c1d4d691ff37bf1bd7c9da5f7d2c79fbe202565 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) (cherry picked from commit 988632fd67abc10375ad9fe2cbd8c9edccc609a5) --- airflow/www/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/airflow/www/views.py b/airflow/www/views.py index 5c397b3c98c58..08ff0bbf454ee 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -5227,6 +5227,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", @@ -5605,6 +5607,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",