Timothy Jaeryang Baek 2 luni în urmă
părinte
comite
0c5fbdedd8
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      backend/open_webui/main.py

+ 1 - 1
backend/open_webui/main.py

@@ -1648,7 +1648,7 @@ async def get_app_config(request: Request):
                     else {}
                 ),
             }
-            if user is not None
+            if user is not None and (user.role in ["admin", "user"])
             else {
                 **(
                     {