From aafda159f9107c210c004dd581cbc78323c4ee93 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Sat, 2 Dec 2023 01:45:52 +1000 Subject: [PATCH] [AC-1873] Only assign user in the front-end if using Flexible Collections (#7051) * Only assign user in the front-end if using Flexible Collections * Fix prettier --- .../collection-dialog/collection-dialog.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/web/src/app/vault/components/collection-dialog/collection-dialog.component.ts b/apps/web/src/app/vault/components/collection-dialog/collection-dialog.component.ts index 898831c2204..b784a49b71c 100644 --- a/apps/web/src/app/vault/components/collection-dialog/collection-dialog.component.ts +++ b/apps/web/src/app/vault/components/collection-dialog/collection-dialog.component.ts @@ -205,14 +205,12 @@ export class CollectionDialogComponent implements OnInit, OnDestroy { (u) => u.userId === this.organization?.userId )?.id; const initialSelection: AccessItemValue[] = - currentOrgUserId !== undefined + currentOrgUserId !== undefined && flexibleCollections ? [ { id: currentOrgUserId, type: AccessItemType.Member, - permission: flexibleCollections - ? CollectionPermission.Manage - : CollectionPermission.Edit, + permission: CollectionPermission.Manage, }, ] : [];