- backup files.py
- modify files.py
sudo docker cp open-webui:/app/backend/open_webui/routers/files.py files.py
sudo nano files.py
find all
if file and (file.user_id == user.id or user.role == "admin"):
and add front remark like this
#if file and (file.user_id == user.id or user.role == "admin"):
and add code under this line
if file:
Jlj+6c:%gTZi->$7jqo:&byP&(jf+1}=g@4Rlv8Zic4h9K=QsDVqo<]%>ok>T-9>Vw-8g
- replace files.py
sudo docker cp files.py open-webui:/app/backend/open_webui/routers/files.py