From 46b0405b09803d2cbb1200d52397851542a7da21 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 18 Nov 2022 11:23:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=E5=8F=96=E6=B6=88=E5=85=B3=E8=81=94=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E6=97=B6=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1019806 --user=李玉号 【系统设置】用户角色是项目管理员&项目成员,项目管理员有用例评审权限,但是无法取消关联用例 https://www.tapd.cn/55049933/s/1298120 --- .../metersphere/controller/TestReviewTestCaseController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-track/backend/src/main/java/io/metersphere/controller/TestReviewTestCaseController.java b/test-track/backend/src/main/java/io/metersphere/controller/TestReviewTestCaseController.java index d89e1d6043..7313d0b19e 100644 --- a/test-track/backend/src/main/java/io/metersphere/controller/TestReviewTestCaseController.java +++ b/test-track/backend/src/main/java/io/metersphere/controller/TestReviewTestCaseController.java @@ -36,14 +36,14 @@ public class TestReviewTestCaseController { } @PostMapping("/delete") - @RequiresPermissions(PermissionConstants.PROJECT_TRACK_REVIEW_READ_DELETE) + @RequiresPermissions(PermissionConstants.PROJECT_TRACK_REVIEW_READ_RELEVANCE_OR_CANCEL) @MsAuditLog(module = OperLogModule.TRACK_TEST_CASE_REVIEW, type = OperLogConstants.UN_ASSOCIATE_CASE, beforeEvent = "#msClass.getLogDetails(#request)", msClass = TestReviewTestCaseService.class) public int deleteTestCase(@RequestBody DeleteRelevanceRequest request) { return testReviewTestCaseService.deleteTestCase(request); } @PostMapping("/batch/delete") - @RequiresPermissions(PermissionConstants.PROJECT_TRACK_REVIEW_READ_DELETE) + @RequiresPermissions(PermissionConstants.PROJECT_TRACK_REVIEW_READ_RELEVANCE_OR_CANCEL) @MsAuditLog(module = OperLogModule.TRACK_TEST_CASE_REVIEW, type = OperLogConstants.UN_ASSOCIATE_CASE, beforeEvent = "#msClass.getLogDetails(#request)", msClass = TestReviewTestCaseService.class) public void deleteTestCaseBatch(@RequestBody TestReviewCaseBatchRequest request) { testReviewTestCaseService.deleteTestCaseBatch(request);