Skip to content

Commit

Permalink
fix(partner network): change role to access page (#1234)
Browse files Browse the repository at this point in the history
change  from read_partner to read_partner_member role from BPDM client
#1233
  • Loading branch information
evegufy authored Oct 16, 2024
1 parent 2a3ae9b commit 2957bad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/types/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: <PartnerNetwork />,
},
{
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/types/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
Expand Down

0 comments on commit 2957bad

Please sign in to comment.