Timothy Jaeryang Baek 2 ماه پیش
والد
کامیت
0c5fbdedd8
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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 {
                 **(
                     {