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 Dec 1, 2023
1 parent 10d1e7d commit 0d035c5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,12 @@ export class CollectionDialogComponent implements OnInit, OnDestroy {
const currentOrgUserId = users.data.find((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 0d035c5

Please sign in to comment.