[PR #20488] [MERGED] feat: add ENABLE_USER_STATUS toggle for admin-controlled user status visibility #112953

Closed
opened 2026-05-18 13:11:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/20488
Author: @Classic298
Created: 1/8/2026
Status: Merged
Merged: 1/8/2026
Merged by: @tjbck

Base: devHead: user-status


📝 Commits (4)

  • 3b0959a feat: add ENABLE_USER_STATUS toggle for admin-controlled user status visibility
  • c31713c Update UserMenu.svelte
  • ad09b50 nuke the indicator
  • 543e2f4 fix

📊 Changes

7 files changed (+40 additions, -2 deletions)

View changed files

📝 backend/open_webui/config.py (+6 -0)
📝 backend/open_webui/main.py (+3 -0)
📝 backend/open_webui/routers/auths.py (+4 -0)
📝 backend/open_webui/routers/users.py (+12 -0)
📝 src/lib/components/admin/Settings/General.svelte (+8 -0)
📝 src/lib/components/layout/Sidebar.svelte (+6 -2)
📝 src/lib/components/layout/Sidebar/UserMenu.svelte (+1 -0)

📄 Description

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

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/20488 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 1/8/2026 **Status:** ✅ Merged **Merged:** 1/8/2026 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `user-status` --- ### 📝 Commits (4) - [`3b0959a`](https://github.com/open-webui/open-webui/commit/3b0959ab27a066285f65959dc942e15d9856d404) feat: add ENABLE_USER_STATUS toggle for admin-controlled user status visibility - [`c31713c`](https://github.com/open-webui/open-webui/commit/c31713ce6175ad9ef9f43e86c4f66d8614ddab4e) Update UserMenu.svelte - [`ad09b50`](https://github.com/open-webui/open-webui/commit/ad09b503890380cd977b7930d9a0a4086291be22) nuke the indicator - [`543e2f4`](https://github.com/open-webui/open-webui/commit/543e2f434ffa17d8730657a5d1d5a5a073711e4d) fix ### 📊 Changes **7 files changed** (+40 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+6 -0) 📝 `backend/open_webui/main.py` (+3 -0) 📝 `backend/open_webui/routers/auths.py` (+4 -0) 📝 `backend/open_webui/routers/users.py` (+12 -0) 📝 `src/lib/components/admin/Settings/General.svelte` (+8 -0) 📝 `src/lib/components/layout/Sidebar.svelte` (+6 -2) 📝 `src/lib/components/layout/Sidebar/UserMenu.svelte` (+1 -0) </details> ### 📄 Description 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 ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-18 13:11:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#112953