diff --git a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts index d0656b258..62f287610 100644 --- a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts +++ b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts @@ -156,7 +156,7 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { // A public access never exposes the monetary values and never // changes data - this.accessForm.get('accessLevel')?.setValue('RESTRICTED_VIEW'); + this.accessForm.get('accessLevel')?.setValue('READ_RESTRICTED'); } granteeUserIdControl?.updateValueAndValidity(); @@ -187,9 +187,9 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { private buildScopes(): Scope[] { switch (this.accessForm.get('accessLevel')?.value as AccessLevel) { - case 'CHANGE': + case 'CREATE_READ_UPDATE_DELETE': return [...SCOPES_OF_READ_ACCESS, ...SCOPES_OF_WRITE_ACCESS]; - case 'VIEW': + case 'READ': return [...SCOPES_OF_READ_ACCESS]; default: return [...SCOPES_OF_READ_RESTRICTED_ACCESS]; @@ -241,12 +241,12 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { return hasScope(scopesOfAccess, scope); }) ) { - return 'CHANGE'; + return 'CREATE_READ_UPDATE_DELETE'; } return hasScope(scopesOfAccess, scopes.portfolioReadValues) - ? 'VIEW' - : 'RESTRICTED_VIEW'; + ? 'READ' + : 'READ_RESTRICTED'; } private loadHoldings() { diff --git a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html index fa2e221ee..86062c8ae 100644 --- a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html +++ b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -37,10 +37,12 @@ Permission - Restricted view + Restricted view @if (accessForm.get('type')?.value === 'PRIVATE') { - View - View and change + View + View and manage } diff --git a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/interfaces/interfaces.ts b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/interfaces/interfaces.ts index d93aaf293..ca7cee25a 100644 --- a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/interfaces/interfaces.ts +++ b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/interfaces/interfaces.ts @@ -4,4 +4,5 @@ export interface CreateOrUpdateAccessDialogParams { access?: Access; } -export type AccessLevel = 'CHANGE' | 'RESTRICTED_VIEW' | 'VIEW'; +export type AccessLevel = + 'CREATE_READ_UPDATE_DELETE' | 'READ' | 'READ_RESTRICTED';