mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #18488] After logging in, the left nav is stuck loading #34141
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pekrockstar on GitHub (Oct 21, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18488
7a83e7dfa3/src/lib/components/chat/Navbar.svelte (L204)This part should be changed like this:
permissions.chat?change topermissions?.chat?@silentoplayz commented on GitHub (Oct 21, 2025):
More info is wanted here. Why is this change needed?
{#if $user?.role === 'admin' || ($user?.permissions.chat?.controls ?? true)}can also be found insrc/lib/components/chat/Controls/Controls.svelte. Does that not need changed frompermissions.chat?topermissions?.chat?as well?@rgaricano commented on GitHub (Oct 21, 2025):
No, that change isn't neccessary, permissions are explicit for users, if user exists then user.permissions too.
@pekrockstar commented on GitHub (Oct 21, 2025):
Yes, all
{#if $user?.role === 'admin' || ($user?.permissions.chat?.controls ?? true)}need to be changed to{#if $user?.role === 'admin' || ($user?.permissions.chat?.controls ?? true)}, otherwiseUncaught (in promise) TypeError: Cannot read properties of undefined (reading 'chat')error will be reported.After logging in, the first thing I noticed was that the menu on the left kept loading, and the other errors could only be found after clicking into the corresponding pages.
@pekrockstar commented on GitHub (Oct 21, 2025):
yes,that change isn't necessary, If you have not customized other login methods, because the previous
auths.pycode does not have returnpermissionsfield, this should be the latest newly added field, THANKS ALL!