From ee55d6fd2ed293d89808ca53b2bdbaf345629e4c Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 28 Feb 2024 13:42:42 +0100 Subject: [PATCH] Don't allow internal groups --- .../portal/users/users/_components/AddUserModal.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/users/users/_components/AddUserModal.svelte b/packages/builder/src/pages/builder/portal/users/users/_components/AddUserModal.svelte index 346b293235..5077239882 100644 --- a/packages/builder/src/pages/builder/portal/users/users/_components/AddUserModal.svelte +++ b/packages/builder/src/pages/builder/portal/users/users/_components/AddUserModal.svelte @@ -33,6 +33,8 @@ $: reached = licensing.usersLimitReached(userCount) $: exceeded = licensing.usersLimitExceeded(userCount) + $: internalGroups = $groups?.filter(g => !g?.scimInfo?.isSync) + function removeInput(idx) { userData = userData.filter((e, i) => i !== idx) } @@ -133,12 +135,12 @@ {/if} - {#if $licensing.groupsEnabled} + {#if $licensing.groupsEnabled && internalGroups?.length} option.name} getOptionValue={option => option._id} />