fix(用例管理): 用户只有查看权限,用例列表页面报错
--bug=1035851 --user=王旭 【用例管理】只有用例管理查看权限的用户查看功能用例列表报错 https://www.tapd.cn/55049933/s/1463299
This commit is contained in:
parent
917849e1f3
commit
4e0b9ecf9a
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue