This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi 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 47c90cfbde Remove unused `can_read_dags` function from
`api_connexion/security.py` (#35365)
47c90cfbde is described below
commit 47c90cfbded17c4942a80e2941091d37b2d8765d
Author: Ephraim Anierobi <[email protected]>
AuthorDate: Thu Nov 2 11:12:05 2023 +0100
Remove unused `can_read_dags` function from `api_connexion/security.py`
(#35365)
This function is not used and was introduced in commit
#33ec72948f74f56f2adb5e2d388e60e88e8a3fa3.
Opening this PR to discuss it
---
airflow/api_connexion/security.py | 4 ----
1 file changed, 4 deletions(-)
diff --git a/airflow/api_connexion/security.py
b/airflow/api_connexion/security.py
index 2896ec2362..59edb8ea35 100644
--- a/airflow/api_connexion/security.py
+++ b/airflow/api_connexion/security.py
@@ -247,7 +247,3 @@ def requires_access_website() -> Callable[[T], T]:
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)