We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4278388 commit 9a347b0Copy full SHA for 9a347b0
1 file changed
backend/open_webui/routers/knowledge.py
@@ -847,10 +847,7 @@ async def remove_file_from_knowledge_by_id(
847
log.debug(e)
848
pass
849
850
- # Only the file owner or an admin may permanently delete the underlying
851
- # file. Collaborators with KB write access can unlink a file from the
852
- # knowledge base but must not be able to destroy files they do not own,
853
- # as the same file may be referenced by other KBs and chats.
+ # Anyone with write permission or higher can delete files
854
if delete_file and (file.user_id == user.id or user.role == 'admin'):
855
try:
856
# Remove the file's collection from vector database
0 commit comments