feat: add ENABLE_ADMIN_CHAT_ACCESS to control admin access to user chats

This commit is contained in:
Jun Siang Cheah committed 2024-08-04 15:16:14 +01:00
1 parent a75a9c953a
commit 565f40c642
5 files changed
+15 -3

No files matched your search

+2
View File
@@ -116,6 +116,7 @@ from config import (
WEBUI_SECRET_KEY,
WEBUI_SESSION_COOKIE_SAME_SITE,
WEBUI_SESSION_COOKIE_SECURE,
ENABLE_ADMIN_CHAT_ACCESS,
AppConfig,
)
@@ -2001,6 +2002,7 @@ async def get_app_config():
"enable_image_generation": images_app.state.config.ENABLED,
"enable_community_sharing": webui_app.state.config.ENABLE_COMMUNITY_SHARING,
"enable_admin_export": ENABLE_ADMIN_EXPORT,
"enable_admin_chat_access": ENABLE_ADMIN_CHAT_ACCESS,
},
"audio": {
"tts": {