fix(测试跟踪): 没有性能测试权限,编辑功能用例会报错

--bug=1028130 --user=陈建星 【测试跟踪】github#25831,权限问题-功能用例查看需要性能测试查看权限不然报错 https://www.tapd.cn/55049933/s/1397492
This commit is contained in:
jianxing 2023-07-25 18:15:44 +08:00 committed by fit2-zhao
parent 01d4e60463
commit 7c3e5b7d02

View File

@ -345,7 +345,7 @@ public class PerformanceTestController {
}
@PostMapping("/getLoadCaseByIds")
@RequiresPermissions(PermissionConstants.PROJECT_PERFORMANCE_TEST_READ)
@RequiresPermissions(value = {PermissionConstants.PROJECT_PERFORMANCE_TEST_READ, PermissionConstants.PROJECT_TRACK_CASE_READ}, logical = Logical.OR)
public List<LoadTest> getLoadCaseByIds(@RequestBody List<String> ids) {
return performanceTestService.getLoadCaseByIds(ids);
}