From 1fa1f926b8e291112df2af08f23500f92a66f891 Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Fri, 10 Nov 2023 14:45:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=9C=89=E7=94=A8=E4=BE=8B=E6=9F=A5=E7=9C=8B=E6=9D=83=E9=99=90?= =?UTF-8?q?=EF=BC=8C=E6=B2=A1=E6=9C=89=E8=84=91=E5=9B=BE=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=9D=83=E9=99=90=EF=BC=8C=E6=9F=A5=E7=9C=8B=E8=84=91=E5=9B=BE?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1032741 --user=陈建星 【测试跟踪】github#27478,最新版本:角色权限>>测试跟踪>>测试用例:不勾选【操作脑图】选项,当在测试跟踪>>功能测试,点击脑图查看测试用例时,报403。但是在升级前的版本(2.9版本之前的版本),用户权限都是一样的都没有【操作脑图】权限,大家都是可以用脑图的形式查看用例的 https://www.tapd.cn/55049933/s/1435196 --- .../io/metersphere/controller/MinderExtraNodeController.java | 2 +- .../java/io/metersphere/controller/TestCaseController.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test-track/backend/src/main/java/io/metersphere/controller/MinderExtraNodeController.java b/test-track/backend/src/main/java/io/metersphere/controller/MinderExtraNodeController.java index 281fc846df..bcc79959a3 100644 --- a/test-track/backend/src/main/java/io/metersphere/controller/MinderExtraNodeController.java +++ b/test-track/backend/src/main/java/io/metersphere/controller/MinderExtraNodeController.java @@ -20,7 +20,7 @@ public class MinderExtraNodeController { MinderExtraNodeService minderExtraNodeService; @GetMapping("/list/{groupId}/{parentId}") - @RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_MINDER_OPERATE) + @RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ) public List list(@PathVariable String groupId, @PathVariable String parentId) { return minderExtraNodeService.selectByParentId(parentId, groupId); } diff --git a/test-track/backend/src/main/java/io/metersphere/controller/TestCaseController.java b/test-track/backend/src/main/java/io/metersphere/controller/TestCaseController.java index de92cabbb7..ab1bd52d08 100644 --- a/test-track/backend/src/main/java/io/metersphere/controller/TestCaseController.java +++ b/test-track/backend/src/main/java/io/metersphere/controller/TestCaseController.java @@ -96,14 +96,14 @@ public class TestCaseController { } @PostMapping("/list/minder") - @RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_MINDER_OPERATE) + @RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ) public List listForMinder(@RequestBody QueryTestCaseRequest request) { baseCheckPermissionService.checkProjectOwner(request.getProjectId()); return testCaseService.listTestCaseForMinder(request); } @PostMapping("/list/minder/{goPage}/{pageSize}") - @RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_MINDER_OPERATE) + @RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ) public Pager> listForMinder(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody QueryTestCaseRequest request) { baseCheckPermissionService.checkProjectOwner(request.getProjectId()); Page page = PageHelper.startPage(goPage, pageSize, true);