Don't allow internal groups

This commit is contained in:
Adria Navarro 2024-02-28 13:42:42 +01:00
parent d637af36f5
commit ee55d6fd2e
1 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,8 @@
$: reached = licensing.usersLimitReached(userCount) $: reached = licensing.usersLimitReached(userCount)
$: exceeded = licensing.usersLimitExceeded(userCount) $: exceeded = licensing.usersLimitExceeded(userCount)
$: internalGroups = $groups?.filter(g => !g?.scimInfo?.isSync)
function removeInput(idx) { function removeInput(idx) {
userData = userData.filter((e, i) => i !== idx) userData = userData.filter((e, i) => i !== idx)
} }
@ -133,12 +135,12 @@
{/if} {/if}
</Layout> </Layout>
{#if $licensing.groupsEnabled} {#if $licensing.groupsEnabled && internalGroups?.length}
<Multiselect <Multiselect
bind:value={userGroups} bind:value={userGroups}
placeholder="No groups" placeholder="No groups"
label="Groups" label="Groups"
options={$groups} options={internalGroups}
getOptionLabel={option => option.name} getOptionLabel={option => option.name}
getOptionValue={option => option._id} getOptionValue={option => option._id}
/> />