Files
open-webui-ai4me/backend/open_webui
Classic298 977d638afe fix: invalidate stale Socket.IO sessions on role change and user deletion (#23642)
SESSION_POOL caches user.role at connection time and never refreshes it. When an admin demotes or deletes a user, their socket sessions retain the old cached role until voluntary disconnect, allowing continued use of admin-gated socket features (ydoc editing, channel access).

Adds disconnect_user_sessions() helper that disconnects all sockets for a user ID. Called from update_user_by_id (on role change) and delete_user_by_id. The client auto-reconnects and re-authenticates with fresh DB data.
2026-04-12 16:19:38 -05:00
..
2026-04-12 14:22:11 -05:00
2026-04-01 18:26:46 -05:00
2026-04-12 14:22:11 -05:00
2026-04-12 14:22:11 -05:00
2026-03-23 23:39:52 -05:00
2026-04-12 12:36:21 -05:00
2026-03-17 17:58:01 -05:00
2026-04-12 14:39:23 -05:00
2026-04-12 14:22:11 -05:00
2026-03-24 15:41:26 -05:00
2026-04-11 17:06:58 -06:00
2026-03-25 17:29:57 -05:00
2026-04-12 14:22:11 -05:00
2026-04-12 14:22:11 -05:00
2026-03-17 17:58:01 -05:00