mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #9003] [MERGED] Fix: Users with write adding docs to knowledge, deleting, and fixing read/write toggle on model & knowledge creation #22301
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/9003
Author: @tarmst
Created: 1/27/2025
Status: ✅ Merged
Merged: 1/27/2025
Merged by: @tjbck
Base:
dev← Head:fix-no-file-upload-for-write-groups📝 Commits (1)
751a61aAdding more checks for write access. Adding accessRoles to Model & Knowledge creation📊 Changes
6 files changed (+53 additions, -11 deletions)
View changed files
📝
backend/open_webui/routers/knowledge.py(+30 -6)📝
backend/open_webui/routers/models.py(+5 -1)📝
backend/open_webui/routers/prompts.py(+5 -1)📝
backend/open_webui/routers/tools.py(+5 -1)📝
src/lib/components/workspace/Knowledge/CreateKnowledgeBase.svelte(+4 -1)📝
src/lib/components/workspace/Models/ModelEditor.svelte(+4 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Associated issue: https://github.com/open-webui/open-webui/issues/8889
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Fixed
Additional Information
I had to add accessRoles definitions to the AccessControls of both ModelEditor & CreateKnowledgeBase, so that the read/write could be toggled. I'm not sure if this was the correct way to do this. Lmk if not.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.