mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 17:02:01 -05:00
[GH-ISSUE #17288] feat: Add Chat Permission toggle to control file download in citations (avoid confidential data leakage) 在 Chat Permissions 增加控制是否允許下載檔案的開關(避免機密資料外洩) #137956
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 @linbanana on GitHub (Sep 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17288
Check Existing Issues
Problem Description
Feature Description
Currently, in CitationsModal.svelte (around line 95), uploaded files referenced in citations are always rendered with a clickable
<a>link that allows downloading or opening the file.For environments dealing with confidential or sensitive documents, this behavior may cause potential data leakage risks.
We propose adding a new Chat Permission setting:
If disabled, citations should only show the file name (and optional page number), but without a clickable download link.
Desired Solution you'd like
建議新增一個 Chat Permission:
若關閉,Citation 僅顯示檔名(及選填的頁碼),但不提供下載連結。
Example Code (CitationsModal.svelte)
Current (always clickable):
Proposed (respect permission):
Benefits
Alternatives Considered
No response
Additional Context
No response