Commit 08c903b1 authored by Yunhua Koglin's avatar Yunhua Koglin
Browse files

add checking for getsdpath

parent 65f73b29
......@@ -141,6 +141,13 @@ 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();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment