|
|
@ -20,7 +20,7 @@ |
|
|
|
|
|
|
|
|
if (!tenantId.includes("localhost:")) { |
|
|
if (!tenantId.includes("localhost:")) { |
|
|
// user doesn't have permission to access this tenant - kick them out |
|
|
// user doesn't have permission to access this tenant - kick them out |
|
|
if (user?.tenantId !== tenantId) { |
|
|
if (user && user.tenantId !== tenantId) { |
|
|
await auth.logout() |
|
|
await auth.logout() |
|
|
await auth.setOrganisation(null) |
|
|
await auth.setOrganisation(null) |
|
|
} else { |
|
|
} else { |
|
|
|