This is an automated email from the ASF dual-hosted git repository.

vincbeck 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 7c7342dbe80 Remove usage of deprecated module 
airflow.security.permissions (#63335)
7c7342dbe80 is described below

commit 7c7342dbe80a5389166cbb92e004fe5cdb297eda
Author: Nitochkin <[email protected]>
AuthorDate: Thu Mar 12 16:25:22 2026 +0100

    Remove usage of deprecated module airflow.security.permissions (#63335)
---
 .../common/compat/security/permissions.py          | 27 ++++------------------
 1 file changed, 5 insertions(+), 22 deletions(-)

diff --git 
a/providers/common/compat/src/airflow/providers/common/compat/security/permissions.py
 
b/providers/common/compat/src/airflow/providers/common/compat/security/permissions.py
index 1a2d774510e..a1e89802278 100644
--- 
a/providers/common/compat/src/airflow/providers/common/compat/security/permissions.py
+++ 
b/providers/common/compat/src/airflow/providers/common/compat/security/permissions.py
@@ -16,25 +16,8 @@
 # under the License.
 from __future__ import annotations
 
-from typing import TYPE_CHECKING
-
-if TYPE_CHECKING:
-    from airflow.security.permissions import (
-        RESOURCE_ASSET,
-        RESOURCE_ASSET_ALIAS,
-        RESOURCE_BACKFILL,
-        RESOURCE_DAG_VERSION,
-    )
-else:
-    try:
-        from airflow.security.permissions import (
-            RESOURCE_ASSET,
-            RESOURCE_ASSET_ALIAS,
-            RESOURCE_BACKFILL,
-            RESOURCE_DAG_VERSION,
-        )
-    except ImportError:
-        from airflow.security.permissions import RESOURCE_DATASET as 
RESOURCE_ASSET
-
-
-__all__ = ["RESOURCE_ASSET", "RESOURCE_ASSET_ALIAS", "RESOURCE_BACKFILL", 
"RESOURCE_DAG_VERSION"]
+# Resource Constants
+RESOURCE_BACKFILL = "Backfills"
+RESOURCE_DAG_VERSION = "DAG Versions"
+RESOURCE_ASSET = "Assets"
+RESOURCE_ASSET_ALIAS = "Asset Aliases"

Reply via email to