浏览代码

fix: tools permissions

Timothy Jaeryang Baek 3 月之前
父节点
当前提交
31ed1fcdb8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/routers/tools.py

+ 1 - 1
backend/open_webui/routers/tools.py

@@ -70,7 +70,7 @@ async def create_new_tools(
     user=Depends(get_verified_user),
 ):
     if user.role != "admin" and not has_permission(
-        user.id, "workspace.knowledge", request.app.state.config.USER_PERMISSIONS
+        user.id, "workspace.tools", request.app.state.config.USER_PERMISSIONS
     ):
         raise HTTPException(
             status_code=status.HTTP_401_UNAUTHORIZED,