mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #4317] [CLOSED] chore: Refactor how user.role are checked into methods
#37084
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/4317
Author: @leobenkel
Created: 8/3/2024
Status: ❌ Closed
Base:
dev← Head:refactor_role_check📝 Commits (4)
a58dfccMerge pull request #4273 from open-webui/devd3146d2Merge pull request #4304 from open-webui/dev5e53c6echore: Refactor how user.role are checkedd3222defix📊 Changes
6 files changed (+28 additions, -16 deletions)
View changed files
📝
backend/apps/ollama/main.py(+2 -2)📝
backend/apps/openai/main.py(+1 -1)📝
backend/apps/webui/models/users.py(+12 -0)📝
backend/apps/webui/routers/chats.py(+5 -5)📝
backend/main.py(+1 -1)📝
backend/utils/utils.py(+7 -7)📄 Description
Pull Request Checklist
Please open a discussion post in Discussions and describe your changes before submitting a pull request.
https://github.com/open-webui/open-webui/discussions/4316
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
user.roleare checked into methodsAdded
user.roleare checked into methodsChanged
user.roleare checked into methods🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.