fix/refac: hide system prompt for users w/o permission
This commit is contained in:
@@ -88,6 +88,7 @@
|
|||||||
|
|
||||||
<hr class=" border-gray-50 dark:border-gray-850 my-2.5 w-full" />
|
<hr class=" border-gray-50 dark:border-gray-850 my-2.5 w-full" />
|
||||||
|
|
||||||
|
{#if $user?.role === 'admin' || ($user?.permissions.chat?.system_prompt ?? true)}
|
||||||
<div class="my-1">
|
<div class="my-1">
|
||||||
<div class="mb-2 text-xs text-gray-500">{$i18n.t('System Prompt')}</div>
|
<div class="mb-2 text-xs text-gray-500">{$i18n.t('System Prompt')}</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -99,6 +100,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<div class="my-2">
|
<div class="my-2">
|
||||||
<Knowledge bind:selectedItems={data.files}>
|
<Knowledge bind:selectedItems={data.files}>
|
||||||
|
|||||||
Reference in New Issue
Block a user