Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Data Logistics Service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eFlows4HPC WP2
Data Logistics Service
Commits
9d731f07
Commit
9d731f07
authored
1 year ago
by
Christian Boettcher
Browse files
Options
Downloads
Patches
Plain Diff
fix sso permissions defaulting to admin
parent
fa144277
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#133187
passed
1 year ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/unity_integration.py
+2
-2
2 additions, 2 deletions
plugins/unity_integration.py
with
2 additions
and
2 deletions
plugins/unity_integration.py
+
2
−
2
View file @
9d731f07
...
...
@@ -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
'
,
'
F
alse
'
)
admin_access
=
user
.
get
(
'
eflows:dlsAccess
'
,
'
f
alse
'
)
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment