mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #9163] [MERGED] Bug fix, configurable default if using oauth via the DEFAULT_USER_ROLE env variable
#22327
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/9163
Author: @rragundez
Created: 1/31/2025
Status: ✅ Merged
Merged: 1/31/2025
Merged by: @tjbck
Base:
dev← Head:default-role📝 Commits (2)
681851cConfigurable default role for oauth1f2b5famove comment to top📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
backend/open_webui/utils/oauth.py(+2 -1)📄 Description
TBh I think this is a straight forward one @tjbck
For some reason currently the default role behaviour is different if using the OAuth roles. This PR addresses that, it changes the hardcoded default role for the one available for the user to set via environment variables. If the user does not set the default role via the environment variables then it will default to the same behaviour as before.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.