Skip to content

Commit

Permalink
Add missing audit logs for Flask actions add, edit and delete (#34090)
Browse files Browse the repository at this point in the history
(cherry picked from commit 988632f)
  • Loading branch information
hussein-awala authored and ephraimbuddy committed Oct 5, 2023
1 parent 2a47ffb commit 2c1d4d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 2c1d4d6

Please sign in to comment.