From 93205d43209b96e6cb931125f50cd1071ee09e4a Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 14 Aug 2025 02:27:24 +0400 Subject: [PATCH] fix: pending user display content --- backend/open_webui/main.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index a072c96b47..0f4c2e896d 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -1729,6 +1729,16 @@ async def get_app_config(request: Request): if user is not None and (user.role in ["admin", "user"]) 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": { "login_footer": app.state.LICENSE_METADATA.get( @@ -1741,7 +1751,7 @@ async def get_app_config(request: Request): } if app.state.LICENSE_METADATA else {} - ) + ), } ), }