fix: hide chat fork actions when chat import permission is disabled (#27711)

Co-authored-by: Nameless-Monster-Nerd <Nameless-Monster-Nerd@users.noreply.github.com>
This commit is contained in:
G30andNameless-Monster-Nerd authored and GitHub committed 2026-08-10 23:24:59 -06:00
1 parent 5c79ccc9e5
commit b91bb67b55
2 files changed
+4 -2

No files matched your search

@@ -1486,7 +1486,7 @@
</Tooltip>
{/each}
{#if message.done && !readOnly && forkHandler}
{#if message.done && !readOnly && forkHandler && ($user?.role === 'admin' || ($user?.permissions?.chat?.import ?? true))}
<Tooltip content="Fork chat" placement="bottom">
<button
aria-label="Fork chat"