Timothy Jaeryang Baek 2 tháng trước cách đây
mục cha
commit
0c5fbdedd8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {
                 **(
                     {