mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
feat: add ALLOW_ADMIN_EXPORT to disable exporting of chats and the db
This commit is contained in:
@@ -52,6 +52,7 @@ from config import (
|
||||
GLOBAL_LOG_LEVEL,
|
||||
SRC_LOG_LEVELS,
|
||||
WEBHOOK_URL,
|
||||
ALLOW_ADMIN_EXPORT,
|
||||
)
|
||||
from constants import ERROR_MESSAGES
|
||||
|
||||
@@ -207,6 +208,7 @@ async def get_app_config():
|
||||
"default_models": webui_app.state.DEFAULT_MODELS,
|
||||
"default_prompt_suggestions": webui_app.state.DEFAULT_PROMPT_SUGGESTIONS,
|
||||
"trusted_header_auth": bool(webui_app.state.AUTH_TRUSTED_EMAIL_HEADER),
|
||||
"allow_admin_export": ALLOW_ADMIN_EXPORT,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user