Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
0ec1f9e3
Commit
0ec1f9e3
authored
Aug 14, 2024
by
Timothy J. Baek
Browse files
fix: `ENABLE_ADMIN_CHAT_ACCESS` disabling user deletion
parent
96828064
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
49 deletions
+26
-49
src/routes/(app)/admin/+page.svelte
src/routes/(app)/admin/+page.svelte
+26
-49
No files found.
src/routes/(app)/admin/+page.svelte
View file @
0ec1f9e3
...
@@ -319,32 +319,34 @@
...
@@ -319,32 +319,34 @@
<ChatBubbles />
<ChatBubbles />
</button>
</button>
</Tooltip>
</Tooltip>
{/if}
<Tooltip content={$i18n.t('Edit User')}>
<Tooltip content={$i18n.t('Edit User')}>
<button
<button
class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
on:click={async () => {
on:click={async () => {
showEditUserModal = !showEditUserModal;
showEditUserModal = !showEditUserModal;
selectedUser = user;
selectedUser = user;
}}
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="w-4 h-4"
>
>
<svg
<path
xmlns="http://www.w3.org/2000/svg"
stroke-linecap="round"
fill="none"
stroke-linejoin="round"
viewBox="0 0 24 24"
d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"
stroke-width="1.5"
/>
stroke="currentColor"
</svg>
class="w-4 h-4"
</button>
>
</Tooltip>
<path
stroke-linecap="round"
{#if user.role !== 'admin'}
stroke-linejoin="round"
d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"
/>
</svg>
</button>
</Tooltip>
<Tooltip content={$i18n.t('Delete User')}>
<Tooltip content={$i18n.t('Delete User')}>
<button
<button
class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
...
@@ -369,31 +371,6 @@
...
@@ -369,31 +371,6 @@
</svg>
</svg>
</button>
</button>
</Tooltip>
</Tooltip>
{:else}
<Tooltip content={$i18n.t('Edit User')}>
<button
class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
on:click={async () => {
showEditUserModal = !showEditUserModal;
selectedUser = user;
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="w-4 h-4"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"
/>
</svg>
</button>
</Tooltip>
{/if}
{/if}
</div>
</div>
</td>
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment