Skip to content

Commit

Permalink
[AC-1873] Only assign user in the front-end if using Flexible Collect…
Browse files Browse the repository at this point in the history
…ions (#7051)

* Only assign user in the front-end if using Flexible Collections

* Fix prettier
  • Loading branch information
eliykat authored and vincentsalucci committed Dec 1, 2023
1 parent f915d55 commit aafda15
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
]
: [];
Expand Down

0 comments on commit aafda15

Please sign in to comment.