mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
fix: pending user display content
This commit is contained in:
@@ -1729,6 +1729,16 @@ async def get_app_config(request: Request):
|
|||||||
if user is not None and (user.role in ["admin", "user"])
|
if user is not None and (user.role in ["admin", "user"])
|
||||||
else {
|
else {
|
||||||
**(
|
**(
|
||||||
|
{
|
||||||
|
"ui": {
|
||||||
|
"pending_user_overlay_title": app.state.config.PENDING_USER_OVERLAY_TITLE,
|
||||||
|
"pending_user_overlay_content": app.state.config.PENDING_USER_OVERLAY_CONTENT,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if user and user.role == "pending"
|
||||||
|
else {}
|
||||||
|
)
|
||||||
|
** (
|
||||||
{
|
{
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"login_footer": app.state.LICENSE_METADATA.get(
|
"login_footer": app.state.LICENSE_METADATA.get(
|
||||||
@@ -1741,7 +1751,7 @@ async def get_app_config(request: Request):
|
|||||||
}
|
}
|
||||||
if app.state.LICENSE_METADATA
|
if app.state.LICENSE_METADATA
|
||||||
else {}
|
else {}
|
||||||
)
|
),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user