From 4e0b9ecf9a0950dac826a64a3498622ea65744da Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Wed, 21 Feb 2024 14:33:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8F=AA=E6=9C=89=E6=9F=A5=E7=9C=8B=E6=9D=83?= =?UTF-8?q?=E9=99=90=EF=BC=8C=E7=94=A8=E4=BE=8B=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1035851 --user=王旭 【用例管理】只有用例管理查看权限的用户查看功能用例列表报错 https://www.tapd.cn/55049933/s/1463299 --- .../functional/controller/FunctionalCaseController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalCaseController.java b/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalCaseController.java index 8f58064a81..d527df2166 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalCaseController.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalCaseController.java @@ -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());