fix: nested WrappedConfig breaks things

This commit is contained in:
Jun Siang Cheah 2024-05-10 15:20:22 +08:00
parent 298e6848b3
commit a0dceb06a5

View File

@ -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(