mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #24160] fix: show existing users and groups as selected in Models settings "Add Access" modal #50526
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/24160
Author: @kirill-sch
Created: 4/26/2026
Status: 🔄 Open
Base:
dev← Head:fix/access-control-modal-prefill📝 Commits (1)
dacce9efix(ui): prefill existing users and groups in Add Access modal, keep user avatar circular in access list, remove stray border on user rows in access list📊 Changes
3 files changed (+44 additions, -6 deletions)
View changed files
📝
src/lib/components/workspace/common/AccessControl.svelte(+23 -6)📝
src/lib/components/workspace/common/AddAccessModal.svelte(+11 -0)📝
src/lib/components/workspace/common/MemberSelector.svelte(+10 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
Users and groups that were already granted on a model weren't showing up as selected in the "Add Access" modal. This prevented to revoke an existing grant from inside the modal, and re-selecting a principal that was already on the list had no useful effect. [picture 1A]
With this fix, principlas already on the access list open with their checkbox ticked. Unckecking a principal and clicking Add now removes their grant. [picture 1B]
In dark mode a thin white border appeared between user rows in the Access Control list. It sat between rows of the same kind and didn't seperate users from groups. [2A]
The border served no purpose, so it has been removed. [2B]
The user avatar in the Access Control list could render as an oval instead of a circle when the row's flex layout squeezed the image. [3A]
Adding
shrink-0to the avatar prevents flexbox from compressing it, so it stays circular regardless of the surronding text. [3B]Fixed
Additional Information
Tested locally against a Docker image built from this branch.
Screenshots or Videos
1A,




1B,
2A,


2b,
3A,


3B,
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.