Fixing minor mistake.
This commit is contained in:
parent
e0b061a1db
commit
0ea022971f
|
@ -58,7 +58,7 @@ module.exports = async (ctx, next) => {
|
||||||
// If user and app tenant Ids do not match, 403
|
// If user and app tenant Ids do not match, 403
|
||||||
if (env.MULTI_TENANCY && ctx.user) {
|
if (env.MULTI_TENANCY && ctx.user) {
|
||||||
const userTenantId = getTenantId()
|
const userTenantId = getTenantId()
|
||||||
const tenantId = getTenantIDFromAppID(ctx.appId) || DEFAULT_TENANT_ID
|
const tenantId = getTenantIDFromAppID(appId) || DEFAULT_TENANT_ID
|
||||||
if (tenantId !== userTenantId) {
|
if (tenantId !== userTenantId) {
|
||||||
ctx.throw(403, "Cannot access application.")
|
ctx.throw(403, "Cannot access application.")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue