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
9d88b3ba
Commit
9d88b3ba
authored
Apr 14, 2021
by
Diego Molteni
Browse files
relaxed requirement on email
parent
4777e7dc
Pipeline
#35912
passed with stages
in 13 minutes and 47 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/services/subproject/parser.ts
View file @
9d88b3ba
...
@@ -36,7 +36,7 @@ export class SubProjectParser {
...
@@ -36,7 +36,7 @@ export class SubProjectParser {
subproject
.
acls
=
(
req
.
body
&&
req
.
body
.
acls
)
?
req
.
body
.
acls
:
{
'
admins
'
:
[],
'
viewers
'
:
[]
}
subproject
.
acls
=
(
req
.
body
&&
req
.
body
.
acls
)
?
req
.
body
.
acls
:
{
'
admins
'
:
[],
'
viewers
'
:
[]
}
// check user input params
// check user input params
Params
.
check
Email
(
subproject
.
admin
,
'
admin
'
,
false
);
Params
.
check
String
(
subproject
.
admin
,
'
admin
'
,
false
);
Params
.
checkString
(
subproject
.
ltag
,
'
ltag
'
,
false
);
Params
.
checkString
(
subproject
.
ltag
,
'
ltag
'
,
false
);
// This method is temporary required by slb during the migration of sauth from v1 to v2
// This method is temporary required by slb during the migration of sauth from v1 to v2
...
...
src/services/user/parser.ts
View file @
9d88b3ba
...
@@ -23,7 +23,7 @@ export class UserParser {
...
@@ -23,7 +23,7 @@ export class UserParser {
public
static
removeUser
(
req
:
expRequest
):
{
email
:
string
,
sdPath
:
SDPathModel
}
{
public
static
removeUser
(
req
:
expRequest
):
{
email
:
string
,
sdPath
:
SDPathModel
}
{
Params
.
checkBody
(
req
.
body
);
Params
.
checkBody
(
req
.
body
);
Params
.
check
Email
(
req
.
body
.
email
,
'
email
'
);
Params
.
check
String
(
req
.
body
.
email
,
'
email
'
);
Params
.
checkString
(
req
.
body
.
path
,
'
path
'
);
Params
.
checkString
(
req
.
body
.
path
,
'
path
'
);
const
email
=
req
.
body
.
email
;
const
email
=
req
.
body
.
email
;
...
@@ -46,7 +46,7 @@ export class UserParser {
...
@@ -46,7 +46,7 @@ export class UserParser {
public
static
addUser
(
req
:
expRequest
):
{
email
:
string
,
sdPath
:
SDPathModel
,
groupRole
:
string
}
{
public
static
addUser
(
req
:
expRequest
):
{
email
:
string
,
sdPath
:
SDPathModel
,
groupRole
:
string
}
{
Params
.
checkBody
(
req
.
body
);
Params
.
checkBody
(
req
.
body
);
Params
.
check
Email
(
req
.
body
.
email
,
'
email
'
);
Params
.
check
String
(
req
.
body
.
email
,
'
email
'
);
Params
.
checkString
(
req
.
body
.
path
,
'
path
'
);
Params
.
checkString
(
req
.
body
.
path
,
'
path
'
);
const
email
=
req
.
body
.
email
;
const
email
=
req
.
body
.
email
;
...
...
Write
Preview
Supports
Markdown
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