Browse Source

Remove deprecated permissions attribute of access

pull/7639/head
Thomas Kaul 1 week ago
parent
commit
0122391792
  1. 8
      apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts

8
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)) ?.valueChanges.pipe(takeUntilDestroyed(this.destroyRef))
.subscribe((accessType) => { .subscribe((accessType) => {
const granteeUserIdControl = this.accessForm.get('granteeUserId'); const granteeUserIdControl = this.accessForm.get('granteeUserId');
const hasScopeToReadValuesControl = this.accessForm.get( const hasScopeToReadValuesControl = this.accessForm.get(
'hasScopeToReadValues' 'hasScopeToReadValues'
); );
@ -154,6 +155,7 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit {
} else { } else {
granteeUserIdControl?.clearValidators(); granteeUserIdControl?.clearValidators();
granteeUserIdControl?.setValue(null); granteeUserIdControl?.setValue(null);
// A public access never exposes the monetary values // A public access never exposes the monetary values
hasScopeToReadValuesControl?.setValue(false); 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() { private buildScopes() {
return [ return [
...(this.accessForm.get('hasScopeToReadValues')?.value ...(this.accessForm.get('hasScopeToReadValues')?.value

Loading…
Cancel
Save