From 01223917921aa37881a417a5a4ac9faa4a8778c9 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 20 Aug 2026 20:07:50 +0200 Subject: [PATCH] Remove deprecated permissions attribute of access --- .../create-or-update-access-dialog.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 35ca5ae34..12425b50e 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 @@ -144,6 +144,7 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { ?.valueChanges.pipe(takeUntilDestroyed(this.destroyRef)) .subscribe((accessType) => { const granteeUserIdControl = this.accessForm.get('granteeUserId'); + const hasScopeToReadValuesControl = this.accessForm.get( 'hasScopeToReadValues' ); @@ -154,6 +155,7 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { } else { granteeUserIdControl?.clearValidators(); granteeUserIdControl?.setValue(null); + // A public access never exposes the monetary values hasScopeToReadValuesControl?.setValue(false); } @@ -184,8 +186,10 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { ); } - // The dialog offers the read access only. The write scopes are not granted - // here yet. + /** + * The dialog offers the read access only. The write scopes are not granted + * here yet. + */ private buildScopes() { return [ ...(this.accessForm.get('hasScopeToReadValues')?.value