mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 21:09:41 -05:00
[PR #21856] [CLOSED] fix: sharing modal not showing users when access_grants missing from stored config #49356
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/21856
Author: @Classic298
Created: 2/25/2026
Status: ❌ Closed
Base:
dev← Head:claude/fix-sharing-modal-bug-48k67📝 Commits (2)
6c61024fix: sharing modal not showing users when access_grants missing from stored config9555c6bfix: include access_grants in frontend permission merge functions📊 Changes
3 files changed (+7 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/access_control.py(+5 -0)📝
src/lib/components/admin/Users/Groups/EditGroupModal.svelte(+1 -0)📝
src/lib/components/admin/Users/Groups/Permissions.svelte(+1 -0)📄 Description
Summary
access_grantspermission feature was introducedaccess_grantspermission section was missing from three places that enumerate permission keys — backendget_permissions()fallback,EditGroupModal.init()merge, andPermissions.sveltefillMissingProperties()USER_PERMISSIONSwas saved to the DB beforeaccess_grantsexisted, the stored config lacked the key, causing$user.permissions.access_grantsto beundefinedandshareUsersto evaluate tofalseContributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.