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

ephraimanierobi pushed a commit to branch v2-7-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit c42012f60d2579ab2c3ec29c0f3249ba72789319
Author: Pankaj Singh <[email protected]>
AuthorDate: Fri Sep 22 21:13:14 2023 +0530

    Restore EXISTING_ROLES from security.py (#34523)
    
    (cherry picked from commit 5d2cea4515cd656e85c39e04d148fcb2d6ba516a)
---
 airflow/www/security.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/airflow/www/security.py b/airflow/www/security.py
index fc9845b9f7..28d938d052 100644
--- a/airflow/www/security.py
+++ b/airflow/www/security.py
@@ -64,6 +64,14 @@ else:
     # Fetch the security manager override from the auth manager
     SecurityManagerOverride = 
get_auth_manager().get_security_manager_override_class()
 
+EXISTING_ROLES = {
+    "Admin",
+    "Viewer",
+    "User",
+    "Op",
+    "Public",
+}
+
 
 class AirflowSecurityManager(SecurityManagerOverride, SecurityManager, 
LoggingMixin):
     """Custom security manager, which introduces a permission model adapted to 
Airflow."""

Reply via email to