Skip to content
Snippets Groups Projects
Commit 9d731f07 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

fix sso permissions defaulting to admin

parent fa144277
No related branches found
No related tags found
No related merge requests found
Pipeline #133187 passed
...@@ -47,7 +47,7 @@ class UnityIntegrationView(AppBuilderBaseView): ...@@ -47,7 +47,7 @@ class UnityIntegrationView(AppBuilderBaseView):
persistent_identifier = user["sub"] persistent_identifier = user["sub"]
first_name = user["firstname"] first_name = user["firstname"]
last_name = user["surname"] 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("SSO user logging in...")
log.debug("sub : " + persistent_identifier) log.debug("sub : " + persistent_identifier)
...@@ -58,7 +58,7 @@ class UnityIntegrationView(AppBuilderBaseView): ...@@ -58,7 +58,7 @@ class UnityIntegrationView(AppBuilderBaseView):
log.debug("......................") log.debug("......................")
role = FAB_VIEWER_ROLE role = FAB_VIEWER_ROLE
if admin_access: if admin_access == 'true':
role = FAB_ADMIN_ROLE role = FAB_ADMIN_ROLE
# check airflow user backend # check airflow user backend
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment