From 2957badfb013291ff4c0e8e48f49bb1c53cf687d Mon Sep 17 00:00:00 2001 From: Evelyn Gurschler Date: Wed, 16 Oct 2024 09:42:24 +0200 Subject: [PATCH] fix(partner network): change role to access page (#1234) change from read_partner to read_partner_member role from BPDM client https://github.com/eclipse-tractusx/portal-frontend/issues/1233 --- CHANGELOG.md | 5 +++++ src/types/Config.tsx | 4 ++-- src/types/Constants.ts | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ecb96b18..a8a1df89e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,11 @@ - **Service Subscriptions** - rename 'Configure' button to 'Activate' button [#1150](https://github.com/eclipse-tractusx/portal-frontend/pull/1150) +### Bugfixes + +- **Partner Network** + - changed role to access page [#1234](https://github.com/eclipse-tractusx/portal-frontend/pull/1234) + ## 2.3.0-alpha.2 ### Change diff --git a/src/types/Config.tsx b/src/types/Config.tsx index aba7be626..f3004032c 100644 --- a/src/types/Config.tsx +++ b/src/types/Config.tsx @@ -209,7 +209,7 @@ export const ALL_PAGES: IPage[] = [ }, { name: PAGES.PARTNER_NETWORK, - allowTo: () => userHasBpdmRole(ROLES.READ_PARTNER), + allowTo: () => userHasBpdmRole(ROLES.READ_PARTNER_MEMBER), element: , }, { @@ -643,7 +643,7 @@ export const ALL_OVERLAYS: RestrictedItem[] = [ { name: OVERLAYS.NEWS }, { name: OVERLAYS.PARTNER, - allowTo: () => userHasBpdmRole(ROLES.READ_PARTNER), + allowTo: () => userHasBpdmRole(ROLES.READ_PARTNER_MEMBER), }, { name: OVERLAYS.USER, diff --git a/src/types/Constants.ts b/src/types/Constants.ts index 3f3628bb0..fd09d088c 100644 --- a/src/types/Constants.ts +++ b/src/types/Constants.ts @@ -233,7 +233,7 @@ export enum ROLES { CREDENTIAL_REQUESTS = 'view_credential_requests', REVOKE_CREDENTIALS_ISSUER = 'revoke_credentials_issuer', VIEW_REGISTRATION = 'view_registration', - READ_PARTNER = 'read_partner', + READ_PARTNER_MEMBER = 'read_partner_member', APPROVE_NEW_PARTNER = 'approve_new_partner', CONFIGURE_PARTNER_REGISTRATION = 'configure_partner_registration', }