From bb2663aad1a38c98a4c0843f6a5c5e7d910a48af Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 16 Jun 2026 18:41:18 -0400 Subject: [PATCH] fix(ui): gate all chat export formats by chat.export permission (#25914) --- src/lib/components/layout/Navbar/Menu.svelte | 62 ++++++++++--------- .../components/layout/Sidebar/ChatMenu.svelte | 62 +++++++++---------- 2 files changed, 63 insertions(+), 61 deletions(-) diff --git a/src/lib/components/layout/Navbar/Menu.svelte b/src/lib/components/layout/Navbar/Menu.svelte index 36357fd539..7f6a2e6355 100644 --- a/src/lib/components/layout/Navbar/Menu.svelte +++ b/src/lib/components/layout/Navbar/Menu.svelte @@ -379,17 +379,18 @@ {/if} - - -
{$i18n.t('Download')}
- - {#if $user?.role === 'admin' || ($user.permissions?.chat?.export ?? true)} - {/if} - - -
+ + + + + {/if} + - {#if $user?.role === 'admin' || ($user.permissions?.chat?.export ?? true)} - {/if} - + - - + + + {/if}