From d4c640157377e118e236e64db5ca796325531af3 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Tue, 9 Jul 2024 17:42:37 +0300 Subject: [PATCH] bug fix --- frontend/src/app/core/services/auth/auth.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/app/core/services/auth/auth.service.ts b/frontend/src/app/core/services/auth/auth.service.ts index e6458d6dd..d6ac68894 100644 --- a/frontend/src/app/core/services/auth/auth.service.ts +++ b/frontend/src/app/core/services/auth/auth.service.ts @@ -174,6 +174,7 @@ export class AuthService extends BaseService { return this.ensureTenant(tenantCode ?? this.selectedTenant() ?? 'default'); }), concatMap(response => { + if (response == 'default' && tenantCode != 'default') throw Error(); return this.principalService.me(httpParams); }), concatMap(response => {