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):
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment