0.21版本测试项目-测试计划权限不正确

  • Choerodon平台版本:0.21

  • 运行环境:自主搭建

  • 问题描述:

    请尽量详细的描述您遇到的问题,以便我们能更快速的提供解决办法。

    在平台管理–>角色管理中, 测试计划 权限全开,


    但是 在项目级别操作 时,批量指派报错
    URL:
    test/v1/projects/1/cycle/case/batchAssign/cycleCase?assign_user_id=24&organizationId=1

REQUEST:

错误信息:
PERMISSION_NOT_PASSerror.permission.notPassNo access to this interface

用户的角色是自定义角色还是系统角色

自定义。
已解决。
select * from (select Permission_code from iam_role_permission where Role_code =‘role/project/default/project-member’ and Permission_code like ‘knowledgebase-service%’)a
left join
(select Permission_code from iam_role_permission where Role_code =‘role/project/custom/project-cfg-member’ and Permission_code like ‘knowledgebase-service%’)b
on a.Permission_code=b.Permission_code
where b.Permission_code is null

INSERT INTO base_service.iam_role_permission(role_CODE,PERMISSION_CODE,OBJECT_VERSION_NUMBER,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE)VALUES(‘role/project/custom/project-dev-member’,‘knowledgebase-service.document-template.deleteAttach’ ,1,38,‘2020-04-20 13:0:0’,38,‘2020-04-21 13:0:0’);
INSERT INTO base_service.iam_role_permission(role_CODE,PERMISSION_CODE,OBJECT_VERSION_NUMBER,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE)VALUES(‘role/project/custom/project-dev-member’,‘knowledgebase-service.page-project.createPageByTemplate’ ,1,38,‘2020-04-20 13:0:0’,38,‘2020-04-21 13:0:0’);
INSERT INTO base_service.iam_role_permission(role_CODE,PERMISSION_CODE,OBJECT_VERSION_NUMBER,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE)VALUES(‘role/project/custom/project-dev-member’,‘knowledgebase-service.work-space-project.belongToBaseDelete’ ,1,38,‘2020-04-20 13:0:0’,38,‘2020-04-21 13:0:0’);
INSERT INTO base_service.iam_role_permission(role_CODE,PERMISSION_CODE,OBJECT_VERSION_NUMBER,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE)VALUES(‘role/project/custom/project-dev-member’,‘knowledgebase-service.work-space-project.clonePage’ ,1,38,‘2020-04-20 13:0:0’,38,‘2020-04-21 13:0:0’);
INSERT INTO base_service.iam_role_permission(role_CODE,PERMISSION_CODE,OBJECT_VERSION_NUMBER,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE)VALUES(‘role/project/custom/project-dev-member’,‘knowledgebase-service.work-space-project.listAllSpace’ ,1,38,‘2020-04-20 13:0:0’,38,‘2020-04-21 13:0:0’);