This commit is contained in:
Timothy Jaeryang Baek
2026-02-12 17:35:22 -06:00
parent f7af3f010e
commit 59afbd6f92
4 changed files with 30 additions and 0 deletions
@@ -158,6 +158,29 @@
</div>
{/if}
</div>
<div class="flex flex-col w-full">
<Tooltip
className="flex w-full justify-between my-1"
content={$i18n.t(
'Warning: Enabling this will allow users to upload arbitrary code on the server.'
)}
placement="top-start"
>
<div class=" self-center text-xs font-medium">
{$i18n.t('Skills Access')}
</div>
<Switch bind:state={permissions.workspace.skills} />
</Tooltip>
{#if defaultPermissions?.workspace?.skills && !permissions.workspace.skills}
<div class="pb-0.5">
<div class="text-xs text-gray-500">
{$i18n.t('This is a default user permission and will remain enabled.')}
</div>
</div>
{/if}
</div>
</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30" />
+1
View File
@@ -4,6 +4,7 @@ export const DEFAULT_PERMISSIONS = {
knowledge: false,
prompts: false,
tools: false,
skills: false,
models_import: false,
models_export: false,
prompts_import: false,