|
@@ -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,
|