Timothy Jaeryang Baek 2 mēneši atpakaļ
vecāks
revīzija
0c5fbdedd8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 {
                 **(
                     {