Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Seismic DMS Suite
seismic-dms-service
Commits
f6771ab9
Commit
f6771ab9
authored
Oct 28, 2021
by
Varunkumar Manohar
Browse files
fix: add slbclient substrings for delfiserviceaccounts
parent
2e6164ec
Pipeline
#74687
failed with stages
in 10 minutes and 24 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
app/sdms/src/services/user/handler.ts
View file @
f6771ab9
...
...
@@ -279,6 +279,14 @@ export class UserHandler {
const
admins
=
new
Set
();
const
viewers
=
new
Set
();
const
regexForSvcAccount
=
/^
[
a-z0-9
]
*@delfiserviceaccount.com$/g
;
const
svcAccountMatch
=
regexForSvcAccount
.
test
(
userEmail
);
if
(
svcAccountMatch
)
{
const
splitList
=
userEmail
.
split
(
'
@
'
);
userEmail
=
[
splitList
[
0
],
'
.slbclient.com
'
,
'
@delfiserviceaccount.com
'
].
join
(
''
);
}
userListInAuthGroups
.
map
(
lst
=>
{
for
(
const
ele
of
lst
)
{
if
(
ele
===
'
admin
'
||
ele
===
'
editor
'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment