This is an automated email from the ASF dual-hosted git repository.
uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 988632fd67 Add missing audit logs for Flask actions add, edit and
delete (#34090)
988632fd67 is described below
commit 988632fd67abc10375ad9fe2cbd8c9edccc609a5
Author: Hussein Awala <[email protected]>
AuthorDate: Tue Sep 5 09:49:56 2023 +0200
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 4c2d3d99aa..a1c4865a3c 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",