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 b0be5c0c52..16ca38fa68 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 @@ -196,15 +196,22 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { // Narrow the permission to the scopes which the type permits, because // an access which is not granted to a user never exposes the monetary // values and a public access never changes data - this.accessForm.get('accessLevel')?.setValue( - getAccessLevel( - getScopesOfAccess({ - scopes: getScopesOfAccessLevel(this.accessLevel), - type: accessType - }) - ) + const accessLevelOfType = getAccessLevel( + getScopesOfAccess({ + scopes: getScopesOfAccessLevel(this.accessLevel), + type: accessType + }) ); + this.accessForm + .get('accessLevel') + ?.setValue( + accessType === 'PRIVATE' && + accessLevelOfType === 'CREATE_READ_RESTRICTED_UPDATE_DELETE' + ? 'CREATE_READ_UPDATE_DELETE' + : accessLevelOfType + ); + if (!canApplyFiltersToAccess({ type: accessType })) { this.accessForm.get('filters')?.setValue(null); } 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 89893e5708..eb8964d469 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 @@ -82,7 +82,7 @@ - @if (!isPublicAccess) { + @if (accessForm.get('type')?.value === 'MCP') {