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:
1 parent
5c79ccc9e5
commit
b91bb67b55
2 files changed
+4
-2
No files matched your search
@@ -1277,7 +1277,9 @@
|
||||
canCompact: () => !!history?.currentId && contextCompactionEnabled,
|
||||
compactDisabled: () => isActive,
|
||||
canStatus: () => !!history?.currentId,
|
||||
canFork: () => !!history?.currentId,
|
||||
canFork: () =>
|
||||
!!history?.currentId &&
|
||||
($_user?.role === 'admin' || ($_user?.permissions?.chat?.import ?? true)),
|
||||
forkDisabled: () => isActive,
|
||||
contextUsage: () => statusContextUsage,
|
||||
onCompact: compactHandler,
|
||||
|
||||
Reference in new issue
Block a user