diff --git a/plugins/unity_integration.py b/plugins/unity_integration.py index b85d86c72725b3776a935888c17da20ed26e80af..bc74decc5937a564b256fc82437983217e6bcdce 100644 --- a/plugins/unity_integration.py +++ b/plugins/unity_integration.py @@ -47,7 +47,7 @@ class UnityIntegrationView(AppBuilderBaseView): persistent_identifier = user["sub"] first_name = user["firstname"] last_name = user["surname"] - admin_access = user.get('eflows:dlsAccess', 'False') + admin_access = user.get('eflows:dlsAccess', 'false') log.debug("SSO user logging in...") log.debug("sub : " + persistent_identifier) @@ -58,7 +58,7 @@ class UnityIntegrationView(AppBuilderBaseView): log.debug("......................") role = FAB_VIEWER_ROLE - if admin_access: + if admin_access == 'true': role = FAB_ADMIN_ROLE # check airflow user backend