fix(用例管理): 用户只有查看权限,用例列表页面报错

--bug=1035851 --user=王旭 【用例管理】只有用例管理查看权限的用户查看功能用例列表报错 https://www.tapd.cn/55049933/s/1463299
This commit is contained in:
WangXu10 2024-02-21 14:33:47 +08:00 committed by 刘瑞斌
parent 917849e1f3
commit 4e0b9ecf9a
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public class FunctionalCaseController {
@GetMapping("/default/template/field/{projectId}")
@Operation(summary = "用例管理-功能用例-获取默认模板自定义字段")
@RequiresPermissions(PermissionConstants.FUNCTIONAL_CASE_READ_ADD)
@RequiresPermissions(PermissionConstants.FUNCTIONAL_CASE_READ)
@CheckOwner(resourceId = "#projectId", resourceType = "project")
public TemplateDTO getDefaultTemplateField(@PathVariable String projectId) {
TemplateDTO defaultTemplateDTO = projectTemplateService.getDefaultTemplateDTO(projectId, TemplateScene.FUNCTIONAL.name());