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)
$: 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}
</Layout>
{#if $licensing.groupsEnabled}
{#if $licensing.groupsEnabled && internalGroups?.length}
<Multiselect
bind:value={userGroups}
placeholder="No groups"
label="Groups"
options={$groups}
options={internalGroups}
getOptionLabel={option => option.name}
getOptionValue={option => option._id}
/>