refac
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user