This commit is contained in:
Timothy Jaeryang Baek
2025-03-04 01:16:08 -08:00
parent d78fe4decc
commit e3769c1073
3 changed files with 58 additions and 5 deletions

View File

@@ -420,7 +420,7 @@ oauth_manager = OAuthManager(app)
app.state.config = AppConfig()
app.state.WEBUI_NAME = WEBUI_NAME
app.state.LICENSE_DATA = None
app.state.LICENSE_METADATA = None
########################################
#
@@ -1218,7 +1218,7 @@ async def get_app_config(request: Request):
{
"record_count": user_count,
"active_entries": app.state.USER_COUNT,
"license_data": app.state.LICENSE_DATA,
"license_metadata": app.state.LICENSE_METADATA,
}
if user.role == "admin"
else {}