From d2b92c6cd26e4cc9725a6dccb88ccb0d824fce65 Mon Sep 17 00:00:00 2001 From: Panos Hatzinikolaou <45132887+Paahn@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:47:06 -0800 Subject: [PATCH] Add feature flag back to PRP (#643) --- .../pidp/src/app/features/portal/state/portal-state.builder.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workspace/apps/pidp/src/app/features/portal/state/portal-state.builder.ts b/workspace/apps/pidp/src/app/features/portal/state/portal-state.builder.ts index 422c24cb3..5902b36eb 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/portal-state.builder.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/portal-state.builder.ts @@ -124,7 +124,8 @@ export class AccessStateBuilder { ], ), ...ArrayUtils.insertResultIf( - this.insertSection('providerReportingPortal', profileStatus), + this.insertSection('providerReportingPortal', profileStatus) && + this.permissionsService.hasRole([Role.FEATURE_PIDP_DEMO]), () => [new ProviderReportingPortalSection(profileStatus, this.router)], ), ...ArrayUtils.insertResultIf(