mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #23628] [CLOSED] fix: enforce ownership and access grant checks on model import #27287
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/23628
Author: @Classic298
Created: 4/12/2026
Status: ❌ Closed
Base:
dev← Head:fix/model-import-ownership-check📝 Commits (3)
af51217fix: enforce ownership and access grant checks on model import3696e86merge: resolve conflicts with upstream async DB migration55ed331fix: add missing await on filter_allowed_access_grants in import_models📊 Changes
1 file changed (+48 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/models.py(+48 -1)📄 Description
The model import endpoint allowed any user with workspace.models_import permission to overwrite existing models without verifying ownership or write access, and without filtering access grants through filter_allowed_access_grants.
Now enforces the same ownership/write-access check used by update_model_by_id, and applies filter_allowed_access_grants to both new and updated models during import.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.