Browse Source

Add write access

pull/7676/head
Thomas Kaul 1 week ago
parent
commit
e2061d7a20
  1. 4
      apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts
  2. 5
      apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html

4
apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts

@ -111,6 +111,10 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit {
);
}
public get canGrantWriteAccess() {
return this.hasExperimentalFeatures;
}
public ngOnInit() {
const access = this.data?.access;
const isPublic = access?.type === 'PUBLIC';

5
apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html

@ -40,7 +40,10 @@
<mat-option i18n value="READ_RESTRICTED">Restricted view</mat-option>
@if (accessForm.get('type')?.value === 'PRIVATE') {
<mat-option i18n value="READ">View</mat-option>
<mat-option i18n value="CREATE_READ_UPDATE_DELETE"
<mat-option
i18n
value="CREATE_READ_UPDATE_DELETE"
[disabled]="!canGrantWriteAccess"
>View and manage</mat-option
>
}

Loading…
Cancel
Save