mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[GH-ISSUE #19461] issue: Models shared with write permission to group no longer visible in workspace #34419
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?
Originally created by @destination-one on GitHub (Nov 25, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19461
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.38
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When a model has visibility=private, and assigned to a group with write permission, it should appear in the workspace of other users in that group (and /api/v1/models/list)
Actual Behavior
Shared model is not listed
Steps to Reproduce
Logs & Screenshots
no logged errors
Additional Information
I believe the cause is
b2034861aethe new function search_models just filters by the userid of the owner of the model
and fails to replicate what get_models_by_user_id did in previous version with
@tjbck commented on GitHub (Nov 25, 2025):
Should be addressed with
69722ba973in dev, testing wanted here..41 will most likely be released tomorrow.
@destination-one commented on GitHub (Nov 25, 2025):
thanks, Cherry-picked and works so far.
Note: Would not call a access_control LIKE '%"write"%"group_ids"%"{gid}"%' the cleanest.
Luckily among our models all access_control JSON values follow the order "read": ... "write": and not the reverse, which would be bad if it happened.
As far as I know sqlite has json functions, but I don't know how to use such with sqlalchemy, and obviously may be database backend specific (may be different for postgresql)
(or a model-to-group-permissions table just to mention the "proper SQL way")
@tjbck commented on GitHub (Nov 25, 2025):
It'll get the job done but definitely not the best solution, open to other PRs here.