mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #6952] [CLOSED] fix: LDAP User default role #21984
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/6952
Author: @zhan9san
Created: 11/14/2024
Status: ❌ Closed
Base:
dev← Head:feature/add-role-for-ldap-user📝 Commits (1)
3982c55Add correct default role📊 Changes
1 file changed (+13 additions, -1 deletions)
View changed files
📝
backend/open_webui/apps/webui/routers/auths.py(+13 -1)📄 Description
Pull Request Checklist
fixes #6943
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Fixes a bug. The LDAP auth user does not respect the default role in database.
Currently, the LDAP user is always be set to the role
pendingeven the roleuseris set in web UI.Added
Backend: Retrieve the role for LDAP user from config
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Related to #6743
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.