refactor(测试计划): 批量执行用例问题

--bug=1007795 --user=lyh
【Github#7554】在测试计划中,只给用户查询和关联测试用例的权限,用户有执行测试用例的权限;给了用户执行测试用例的权限,用户反而不能执行测试用例
#7554 https://www.tapd.cn/55049933/s/1068357
This commit is contained in:
shiziyuan9527 2021-11-16 15:55:01 +08:00 committed by shiziyuan9527
parent c532d06de7
commit d917415761
1 changed files with 0 additions and 4 deletions

View File

@ -20,7 +20,6 @@ public class TaskController {
private TaskService taskService;
@PostMapping("/list/{goPage}/{pageSize}")
@RequiresPermissions("PROJECT_API_SCENARIO:READ")
public Pager<List<TaskCenterDTO>> getTasks(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody TaskCenterRequest request) {
request.setGoPage(goPage);
request.setPageSize(pageSize);
@ -30,19 +29,16 @@ public class TaskController {
}
@GetMapping("/case/{id}")
@RequiresPermissions("PROJECT_API_SCENARIO:READ")
public List<TaskCenterDTO> getCase(@PathVariable String id) {
return taskService.getCases(id);
}
@GetMapping("/scenario/{id}")
@RequiresPermissions("PROJECT_API_SCENARIO:READ")
public List<TaskCenterDTO> getScenario(@PathVariable String id) {
return taskService.getScenario(id);
}
@PostMapping("/count/running")
@RequiresPermissions("PROJECT_API_SCENARIO:READ")
public int getRunningTasks(@RequestBody TaskCenterRequest request) {
return taskService.getRunningTasks(request);
}