open-webui/src/lib/components/admin/Settings
Classic298 9451b13dc6
feat: add ENABLE_USER_STATUS toggle for admin-controlled user status visibility (#20488)
* feat: add ENABLE_USER_STATUS toggle for admin-controlled user status visibility

feat: add ENABLE_USER_STATUS toggle for admin-controlled user status visibility

Add a new admin panel toggle (Admin > Settings > General) called "User Status" that allows administrators to globally enable or disable user status functionality.

When disabled:
- User status API endpoints return 403 Forbidden
- Status emoji, message, and "Update your status" button are hidden from the user menu

The setting:
- Defaults to True (enabled)
- Can be overridden via ENABLE_USER_STATUS environment variable
- Persists across restarts using PersistentConfig

Files modified:
- backend/open_webui/config.py - Added ENABLE_USER_STATUS PersistentConfig
- backend/open_webui/main.py - App state init and features dict
- backend/open_webui/routers/auths.py - AdminConfig model and endpoints
- backend/open_webui/routers/users.py - 403 guards on status endpoints
- src/lib/components/admin/Settings/General.svelte - Toggle UI
- src/lib/components/layout/Sidebar/UserMenu.svelte - Conditional status display

* Update UserMenu.svelte

feat: add ENABLE_USER_STATUS toggle for admin-controlled user status visibility

Add a new admin panel toggle (Admin > Settings > General) called "User Status" that allows administrators to globally enable or disable user status functionality.

When disabled:
- User status API endpoints return 403 Forbidden
- Active/Away indicator with blinking dot is hidden from the user menu
- Status emoji, message, and "Update your status" button are hidden from the user menu

The setting:
- Defaults to True (enabled)
- Can be overridden via ENABLE_USER_STATUS environment variable
- Persists across restarts using PersistentConfig

Files modified:
- backend/open_webui/config.py - Added ENABLE_USER_STATUS PersistentConfig
- backend/open_webui/main.py - App state init and features dict
- backend/open_webui/routers/auths.py - AdminConfig model and endpoints
- backend/open_webui/routers/users.py - 403 guards on status endpoints
- src/lib/components/admin/Settings/General.svelte - Toggle UI
- src/lib/components/layout/Sidebar/UserMenu.svelte - Conditional status display

* nuke the indicator

* fix
2026-01-09 00:55:57 +04:00
..
Connections refac: styling 2025-09-15 14:28:16 -05:00
Evaluations refac 2026-01-05 21:54:33 +04:00
Interface refac/fix: sortable items isseu 2025-08-14 02:21:28 +04:00
Models feat: add sidebar toggle to workspace and admin models pages (#20176) 2025-12-29 00:45:45 +04:00
Audio.svelte refac: styling 2025-11-30 03:56:12 -05:00
CodeExecution.svelte refac: styling 2025-11-30 03:56:12 -05:00
Connections.svelte refac: styling 2025-11-30 03:56:12 -05:00
Database.svelte refac: styling 2025-11-30 03:56:12 -05:00
Documents.svelte feat: chunk min size target for md header splitter 2026-01-03 19:47:29 +04:00
Evaluations.svelte refac: styling 2025-11-30 03:56:12 -05:00
General.svelte feat: add ENABLE_USER_STATUS toggle for admin-controlled user status visibility (#20488) 2026-01-09 00:55:57 +04:00
Images.svelte refac: styling 2025-11-30 03:56:12 -05:00
Interface.svelte refac: styling 2025-11-30 03:56:12 -05:00
Models.svelte feat: add sidebar toggle to workspace and admin models pages (#20176) 2025-12-29 00:45:45 +04:00
Pipelines.svelte FIX: Pipeline save settings - Handle undefined valves property (#19791) 2025-12-08 10:09:53 -05:00
Tools.svelte refac: styling 2025-11-30 03:56:12 -05:00
WebSearch.svelte chore: format 2026-01-08 01:55:56 +04:00