Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
a0dceb06
Commit
a0dceb06
authored
May 10, 2024
by
Jun Siang Cheah
Browse files
fix: nested WrappedConfig breaks things
parent
298e6848
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
backend/config.py
backend/config.py
+2
-4
No files found.
backend/config.py
View file @
a0dceb06
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment