Skip to content

Commit

Permalink
Remove unused can_read_dags function from `api_connexion/security.p…
Browse files Browse the repository at this point in the history
…y` (apache#35365)

This function is not used and was introduced in commit #33ec72948f74f56f2adb5e2d388e60e88e8a3fa3.
Opening this PR to discuss it
  • Loading branch information
ephraimbuddy authored Nov 2, 2023
1 parent 283fb9f commit 47c90cf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions airflow/api_connexion/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,3 @@ def decorated(*args, **kwargs):

def get_readable_dags() -> list[str]:
return get_airflow_app().appbuilder.sm.get_accessible_dag_ids(g.user)


def can_read_dag(dag_id: str) -> bool:
return get_airflow_app().appbuilder.sm.can_read_dag(dag_id, g.user)

0 comments on commit 47c90cf

Please sign in to comment.