feat: add ENABLE_ADMIN_CHAT_ACCESS to control admin access to user chats

This commit is contained in:
Jun Siang Cheah
2024-08-04 15:16:14 +01:00
parent a75a9c953a
commit 565f40c642
5 changed files with 15 additions and 3 deletions
+4
View File
@@ -824,6 +824,10 @@ WEBHOOK_URL = PersistentConfig(
ENABLE_ADMIN_EXPORT = os.environ.get("ENABLE_ADMIN_EXPORT", "True").lower() == "true"
ENABLE_ADMIN_CHAT_ACCESS = (
os.environ.get("ENABLE_ADMIN_CHAT_ACCESS", "True").lower() == "true"
)
ENABLE_COMMUNITY_SHARING = PersistentConfig(
"ENABLE_COMMUNITY_SHARING",
"ui.enable_community_sharing",