open-webui/backend
silentoplayz 85fb9e5ba1 fix(channels): include the owner and expand group grants in a channel member list
A standard channel keeps no membership rows, so its member list is derived
from read access grants. Two things were wrong with that derivation.

The channel owner was never part of it. Creating a channel grants its
creator nothing, so a channel left private with no grants reported zero
members while its own settings described it as private to you.

User grants and group grants were also applied as separate filters, which
intersect rather than combine. A channel granted to one user and to a group
that user does not belong to listed nobody at all, while the header count
for the same channel, derived independently, reported the union. The list
and the count contradicted each other.

Both readings now come from one roster: the granted users, the members of
the granted groups, and the channel owner, deduplicated. Group channels and
DMs are untouched, since they resolve members from their membership rows.
The helper that decides who receives notifications is also untouched.
2026-08-08 05:57:29 -04:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
open_webui fix(channels): include the owner and expand group grants in a channel member list 2026-08-08 05:57:29 -04:00
.dockerignore fix: litellm config issue 2024-02-24 22:35:11 -08:00
.gitignore refac 2024-09-06 04:59:20 +02:00
dev.sh refac 2026-03-24 19:43:30 -05:00
requirements-min.txt perf: optional orjson JSON codec behind ENABLE_ORJSON (#27583) 2026-07-27 03:45:37 -04:00
requirements.txt perf: optional orjson JSON codec behind ENABLE_ORJSON (#27583) 2026-07-27 03:45:37 -04:00
start.sh refac 2026-06-17 03:01:11 +02:00
start_windows.bat refac 2026-06-17 03:01:11 +02:00