From d7142366b466cec778c07edeffc7350f5982ff21 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 26 Jun 2024 14:49:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=BA=E9=99=B7=E5=9B=9E=E6=94=B6=E7=AB=99?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E6=9D=83=E9=99=90=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/bug/controller/BugTrashController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugTrashController.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugTrashController.java index 2209566646..7cf1f15b4e 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugTrashController.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugTrashController.java @@ -44,7 +44,7 @@ public class BugTrashController { @GetMapping("/recover/{id}") @Operation(summary = "缺陷管理-回收站-恢复") - @RequiresPermissions(PermissionConstants.PROJECT_BUG_UPDATE) + @RequiresPermissions(PermissionConstants.PROJECT_BUG_DELETE) @Log(type = OperationLogType.RECOVER, expression = "#msClass.recoverLog(#id)", msClass = BugLogService.class) public void recover(@PathVariable String id) { bugService.recover(id); @@ -59,7 +59,7 @@ public class BugTrashController { @PostMapping("/batch-recover") @Operation(summary = "缺陷管理-回收站-批量恢复") - @RequiresPermissions(PermissionConstants.PROJECT_BUG_UPDATE) + @RequiresPermissions(PermissionConstants.PROJECT_BUG_DELETE) @CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project") public void batchRecover(@Validated @RequestBody BugBatchRequest request) { request.setUseTrash(true);