From 31ed1fcdb8fc3652b5eaabe779ddcba892ff285b Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 20 Jan 2025 22:57:40 -0800 Subject: [PATCH] fix: tools permissions --- backend/open_webui/routers/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/routers/tools.py b/backend/open_webui/routers/tools.py index 87729f37e..bb19c6f3b 100644 --- a/backend/open_webui/routers/tools.py +++ b/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,