diff --git a/projects/ucap-webmessenger-app/src/app/store/account/authentication/effects.ts b/projects/ucap-webmessenger-app/src/app/store/account/authentication/effects.ts index 7eb28f8e..7bf496f7 100644 --- a/projects/ucap-webmessenger-app/src/app/store/account/authentication/effects.ts +++ b/projects/ucap-webmessenger-app/src/app/store/account/authentication/effects.ts @@ -60,6 +60,8 @@ import { import { KEY_LOGIN_RES_INFO } from '@app/types/login-res-info.type'; import { ProtocolService } from '@ucap-webmessenger/protocol'; +import { environment } from '../../../../environments/environment'; + @Injectable() export class Effects { webLogin$ = createEffect(() => @@ -201,7 +203,11 @@ export class Effects { EnvironmentsInfo >(KEY_ENVIRONMENTS_INFO); - if (!loginRes.privateInformationAgree) { + if ( + environment.productConfig.authentication + .usePrivateInformationAgree && + !loginRes.privateInformationAgree + ) { const privacyTotalUrl = this.piService.privacyTotalUrl({ companyCode: loginInfo.companyCode, userSeq: loginRes.userSeq, diff --git a/projects/ucap-webmessenger-app/src/environments/environment.dev.ts b/projects/ucap-webmessenger-app/src/environments/environment.dev.ts index 88aedc74..c671fdde 100644 --- a/projects/ucap-webmessenger-app/src/environments/environment.dev.ts +++ b/projects/ucap-webmessenger-app/src/environments/environment.dev.ts @@ -19,7 +19,10 @@ export const environment: Environment = { productConfig: { productId: 'PRO_000482', - productName: 'EZMessenger' + productName: 'EZMessenger', + authentication: { + usePrivateInformationAgree: false + } }, commonApiModuleConfig: { diff --git a/projects/ucap-webmessenger-app/src/environments/environment.prod.ts b/projects/ucap-webmessenger-app/src/environments/environment.prod.ts index 17741bab..9bd014bf 100644 --- a/projects/ucap-webmessenger-app/src/environments/environment.prod.ts +++ b/projects/ucap-webmessenger-app/src/environments/environment.prod.ts @@ -19,7 +19,10 @@ export const environment: Environment = { productConfig: { productId: 'PRO_000482', - productName: 'EZMessenger' + productName: 'EZMessenger', + authentication: { + usePrivateInformationAgree: false + } }, commonApiModuleConfig: { diff --git a/projects/ucap-webmessenger-app/src/environments/environment.type.ts b/projects/ucap-webmessenger-app/src/environments/environment.type.ts index 3b9f053f..2f1fc285 100644 --- a/projects/ucap-webmessenger-app/src/environments/environment.type.ts +++ b/projects/ucap-webmessenger-app/src/environments/environment.type.ts @@ -38,6 +38,9 @@ export interface Environment { productConfig: { productId: string; productName: string; + authentication: { + usePrivateInformationAgree: boolean; + }; }; commonApiModuleConfig: CommonApiModuleConfig;