新角色注册的新用户登录访问业务时出现No permissions

* 描述问题

* 运行环境

  • NocoBase 版本: 最新
  • 数据库种类与版本: MySQL8.x
  • 操作系统: Windows
  • 部署方式: create-noc
  • Docker 镜像版本:
  • NodeJS 版本:

如何重现

新建了一个角色,设置为默认角色,给这个角色绑定了菜单权限后
用户登录访问已绑定的菜单业务时出现No permissions

预期行为

预期,分配菜单权限后,可以直接访问使用该功能

截图

日志

2024-09-17 13:06:11 [debug] acl params                                   module=charts submodule=query app=main reqId=69229d00-4ec3-4d36-8445-cf6570e75abe dataSourceKey=main
2024-09-17 13:06:11 [debug] acl parsedParams                             module=charts submodule=query app=main reqId=69229d00-4ec3-4d36-8445-cf6570e75abe dataSourceKey=main
2024-09-17 13:06:11 [error] No permissions                               meta={"err":"ForbiddenError: No permissions\n    at Object.throw (E:\\code\\cy_project\\richcat\\node_modules\\koa\\lib\\context.js:97:11)\n    at checkPermission (E:\\code\\cy_project\\richcat\\node_modules\\@nocobase\\plugin-data-visualization\\dist\\server\\actions\\query.js:282:14)\n    at dispatch (E:\\code\\cy_project\\richcat\\node_modules\\@nocobase\\plugin-data-visualization\\dist\\node_modules\\koa-compose\\index.js:1:510)\n    at E:\\code\\cy_project\\richcat\\node_modules\\@nocobase\\plugin-data-visualization\\dist\\node_modules\\koa-compose\\index.js:1:311\n    at query (E:\\code\\cy_project\\richcat\\node_modules\\@nocobase\\plugin-data-visualization\\dist\\server\\actions\\query.js:296:7)\n    at dispatch (E:\\code\\cy_project\\richcat\\node_modules\\koa-compose\\index.js:42:32)\n    at middleware (E:\\code\\cy_project\\richcat\\node_modules\\@nocobase\\plugin-workflow-action-trigger\\dist\\server\\ActionTrigger.js:59:11)\n    at dispatch (E:\\code\\cy_project\\richcat\\node_modules\\koa-compose\\index.js:42:32)\n    at dataTemplate (E:\\code\\cy_project\\richcat\\node_modules\\@nocobase\\server\\lib\\middlewares\\data-template.js:36:9)\n    at dispatch (E:\\code\\cy_project\\richcat\\node_modules\\koa-compose\\index.js:42:32)"} module=charts submodule=query method=error-handler app=main reqId=69229d00-4ec3-4d36-8445-cf6570e75abe dataSourceKey=main
2024-09-17 13:06:11 [warn]  response /api/charts:query                   method=POST path=/api/charts:query res=[{"message":"No permissions"}] action={"actionName":"query","resourceName":"charts","params":{"resourceName":"charts","actionName":"query","values":{"uid":"rj3lk5nokx3","dataSource":"main","collection":"zw_yhzwxx","cache":{"enabled":false},"limit":12000,"filter":{"$and":[{"createdBy":{"id":{"$eq":"{{$user.id}}"}}}]},"orders":[{"field":["order_nums"],"order":"DESC"}],"measures":[{"alias":"平台名称","field":["zwpt","ptmc"]}],"dimensions":[{"alias":"账单数","field":["order_nums"]}]}}} userId=2 status=403 cost=3 app=main reqId=69229d00-4ec3-4d36-8445-cf6570e75abe

该菜单下的区块对应的数据表权限,是否有分配给该角色?请截图该角色的数据源配置部分看看。

已解决