mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-01 03:17:20 -05:00
[PR #16738] [CLOSED] feat/fix: Use ENABLE_ADMIN_CHAT_ACCESS as a default for ENABLE_ADMIN_EXPORT #111534
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/16738
Author: @dwt
Created: 8/19/2025
Status: ❌ Closed
Base:
dev← Head:default-ENABLE_ADMIN_EXPORT-to-ENABLE_ADMIN_CHAT_ACCESS📝 Commits (1)
2f7c1d7Use ENABLE_ADMIN_CHAT_ACCESS as a default for ENABLE_ADMIN_EXPORT📊 Changes
1 file changed (+6 additions, -2 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -2)📄 Description
This still retains the ability to manually configure ENABLE_ADMIN_EXPORT, but defaults its value to the value of ENABLE_ADMIN_CHAT_ACCESS if set, as the export contains the chats.
This is a followup to the discussion in #16625 where I found it highly unintuitive that disabling admin chat access, still retains his ability to regain that access by exporting all chats.
Looking at the code, there are examples like
and
So dependant environment variables are not a new thing, which is why I hope you can accept this pull request.
TODO
Changelog Entry
Description
ENABLE_ADMIN_EXPORT, now defaults to the value ofENABLE_ADMIN_CHAT_ACCESS, as the export contains the chats of all users.Changed
ENABLE_ADMIN_CHAT_ACCESStofalsebut have not setENABLE_ADMIN_EXPORT, it will now also be set to false and the respective controls in the admin interface will be hidden.Security
Additional Information
Screenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.