"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "9881022b11a6a8cf650e2afcafd716230a1d976b"
Commit a0dceb06 authored by Jun Siang Cheah's avatar Jun Siang Cheah
Browse files

fix: nested WrappedConfig breaks things

parent 298e6848
...@@ -511,10 +511,8 @@ DEFAULT_USER_ROLE = WrappedConfig( ...@@ -511,10 +511,8 @@ DEFAULT_USER_ROLE = WrappedConfig(
os.getenv("DEFAULT_USER_ROLE", "pending"), os.getenv("DEFAULT_USER_ROLE", "pending"),
) )
USER_PERMISSIONS_CHAT_DELETION = WrappedConfig( USER_PERMISSIONS_CHAT_DELETION = (
"USER_PERMISSIONS_CHAT_DELETION", os.environ.get("USER_PERMISSIONS_CHAT_DELETION", "True").lower() == "true"
"ui.user_permissions.chat.deletion",
os.environ.get("USER_PERMISSIONS_CHAT_DELETION", "True").lower() == "true",
) )
USER_PERMISSIONS = WrappedConfig( USER_PERMISSIONS = WrappedConfig(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment