[PR #863] [MERGED] config: allow custom default user role #20495

Closed
opened 2026-04-20 03:00:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/863
Author: @duhow
Created: 2/23/2024
Status: Merged
Merged: 2/23/2024
Merged by: @tjbck

Base: mainHead: patch-1


📝 Commits (1)

  • 2148814 allow custom default user role

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 backend/config.py (+1 -1)

📄 Description

For internal (restricted) websites, allow customize the DEFAULT_USER_ROLE with ENV values (set to user or admin for example).
Since at the moment we need to manually enable the user (pending -> user), I want to allow self-register for quick access.


🔄 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/863 **Author:** [@duhow](https://github.com/duhow) **Created:** 2/23/2024 **Status:** ✅ Merged **Merged:** 2/23/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`2148814`](https://github.com/open-webui/open-webui/commit/214881451dd9d228353e51a01244880f6466e6a7) allow custom default user role ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/config.py` (+1 -1) </details> ### 📄 Description For internal (restricted) websites, allow customize the `DEFAULT_USER_ROLE` with ENV values (set to `user` or `admin` for example). Since at the moment we need to manually enable the user (`pending` -> `user`), I want to allow self-register for quick access. --- <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-04-20 03:00:13 -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#20495