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
08c903b1
Commit
08c903b1
authored
Aug 18, 2021
by
Yunhua Koglin
Browse files
add checking for getsdpath
parent
65f73b29
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/services/tenant/handler.ts
View file @
08c903b1
...
...
@@ -141,7 +141,14 @@ export class TenantHandler {
public
static
async
getTenantSDPath
(
req
:
expRequest
):
Promise
<
string
>
{
const
datapartition
=
TenantParser
.
dataPartition
(
req
);
// retrieve the tenant informations
const
tenant
=
await
TenantDAO
.
get
(
datapartition
);
if
(
FeatureFlags
.
isEnabled
(
Feature
.
AUTHORIZATION
))
{
await
Auth
.
isUserRegistered
(
req
.
headers
.
authorization
,
tenant
.
esd
,
req
[
Config
.
DE_FORWARD_APPKEY
]);
}
try
{
const
tenants
=
await
TenantDAO
.
getAll
();
if
(
datapartition
===
'
slb
'
)
return
(
Config
.
SDPATHPREFIX
+
datapartition
);
...
...
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