Update Open WebUI never-onboarding patch
This commit is contained in:
parent
3cb61ca908
commit
bd9575783f
1 changed files with 9 additions and 13 deletions
|
|
@ -1,28 +1,24 @@
|
||||||
From fa1659eeb26375677b19fa5c3b2393f3faa05234 Mon Sep 17 00:00:00 2001
|
From 8d38721322bc47ce089f8d246513be610e22c187 Mon Sep 17 00:00:00 2001
|
||||||
From: ibizaman <ibizaman@tiserbox.com>
|
From: ibizaman <ibizaman@tiserbox.com>
|
||||||
Date: Sun, 10 May 2026 08:58:10 +0200
|
Date: Sun, 10 May 2026 08:58:10 +0200
|
||||||
Subject: [PATCH] never onboard
|
Subject: [PATCH] never onboard
|
||||||
|
|
||||||
---
|
---
|
||||||
backend/open_webui/main.py | 4 +---
|
backend/open_webui/main.py | 2 --
|
||||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
1 file changed, 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py
|
diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py
|
||||||
index ba7f74c83..d9bab576a 100644
|
index e05497c..826af7b 100644
|
||||||
--- a/backend/open_webui/main.py
|
--- a/backend/open_webui/main.py
|
||||||
+++ b/backend/open_webui/main.py
|
+++ b/backend/open_webui/main.py
|
||||||
@@ -2192,11 +2192,9 @@ async def get_app_config(request: Request):
|
@@ -2391,8 +2391,6 @@ async def get_app_config(request: Request):
|
||||||
user = await Users.get_user_by_id(data['id'])
|
user = await Users.get_user_by_id(data['id'])
|
||||||
|
|
||||||
user_count = await Users.get_num_users()
|
|
||||||
+ # Never onboard
|
|
||||||
onboarding = False
|
onboarding = False
|
||||||
|
|
||||||
- if user is None:
|
- if user is None:
|
||||||
- onboarding = user_count == 0
|
- onboarding = not await Users.has_users()
|
||||||
-
|
|
||||||
return {
|
user_count = await Users.get_num_users() if app.state.LICENSE_METADATA else None
|
||||||
**({'onboarding': True} if onboarding else {}),
|
|
||||||
'status': True,
|
|
||||||
--
|
--
|
||||||
2.53.0
|
2.53.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue