{$i18n.t('Visibility')}
{#if accessControl !== null} {:else} {/if}
{#if accessControl !== null} {$i18n.t('Only select users and groups with permission can access')} {:else} {$i18n.t('Accessible to all users')} {/if}
{#if accessControl !== null} {@const accessGroups = groups.filter((group) => accessControl.read.group_ids.includes(group.id) )}
{$i18n.t('Groups')}
{#if accessGroups.length > 0} {#each accessGroups as group}
{group.name}
{/each} {:else}
{$i18n.t('No groups with access, add a group to grant access')}
{/if}

{/if}