From a0dceb06a5a3c31b9be8617179fe9c1876abc8ca Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Fri, 10 May 2024 15:20:22 +0800 Subject: [PATCH] fix: nested WrappedConfig breaks things --- backend/config.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/config.py b/backend/config.py index 845a812ce..a619bb746 100644 --- a/backend/config.py +++ b/backend/config.py @@ -511,10 +511,8 @@ DEFAULT_USER_ROLE = WrappedConfig( os.getenv("DEFAULT_USER_ROLE", "pending"), ) -USER_PERMISSIONS_CHAT_DELETION = WrappedConfig( - "USER_PERMISSIONS_CHAT_DELETION", - "ui.user_permissions.chat.deletion", - os.environ.get("USER_PERMISSIONS_CHAT_DELETION", "True").lower() == "true", +USER_PERMISSIONS_CHAT_DELETION = ( + os.environ.get("USER_PERMISSIONS_CHAT_DELETION", "True").lower() == "true" ) USER_PERMISSIONS = WrappedConfig(