fix(测试跟踪): 有用例查看权限,没有脑图操作权限,查看脑图报错

--bug=1032741 --user=陈建星 【测试跟踪】github#27478,最新版本:角色权限>>测试跟踪>>测试用例:不勾选【操作脑图】选项,当在测试跟踪>>功能测试,点击脑图查看测试用例时,报403。但是在升级前的版本(2.9版本之前的版本),用户权限都是一样的都没有【操作脑图】权限,大家都是可以用脑图的形式查看用例的 https://www.tapd.cn/55049933/s/1435196
This commit is contained in:
AgAngle 2023-11-10 14:45:17 +08:00 committed by 刘瑞斌
parent 142c9f7feb
commit 1fa1f926b8
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ public class MinderExtraNodeController {
MinderExtraNodeService minderExtraNodeService; MinderExtraNodeService minderExtraNodeService;
@GetMapping("/list/{groupId}/{parentId}") @GetMapping("/list/{groupId}/{parentId}")
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_MINDER_OPERATE) @RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ)
public List<MinderExtraNode> list(@PathVariable String groupId, @PathVariable String parentId) { public List<MinderExtraNode> list(@PathVariable String groupId, @PathVariable String parentId) {
return minderExtraNodeService.selectByParentId(parentId, groupId); return minderExtraNodeService.selectByParentId(parentId, groupId);
} }

View File

@ -96,14 +96,14 @@ public class TestCaseController {
} }
@PostMapping("/list/minder") @PostMapping("/list/minder")
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_MINDER_OPERATE) @RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ)
public List<TestCaseDTO> listForMinder(@RequestBody QueryTestCaseRequest request) { public List<TestCaseDTO> listForMinder(@RequestBody QueryTestCaseRequest request) {
baseCheckPermissionService.checkProjectOwner(request.getProjectId()); baseCheckPermissionService.checkProjectOwner(request.getProjectId());
return testCaseService.listTestCaseForMinder(request); return testCaseService.listTestCaseForMinder(request);
} }
@PostMapping("/list/minder/{goPage}/{pageSize}") @PostMapping("/list/minder/{goPage}/{pageSize}")
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_MINDER_OPERATE) @RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ)
public Pager<List<TestCaseDTO>> listForMinder(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody QueryTestCaseRequest request) { public Pager<List<TestCaseDTO>> listForMinder(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody QueryTestCaseRequest request) {
baseCheckPermissionService.checkProjectOwner(request.getProjectId()); baseCheckPermissionService.checkProjectOwner(request.getProjectId());
Page<Object> page = PageHelper.startPage(goPage, pageSize, true); Page<Object> page = PageHelper.startPage(goPage, pageSize, true);