fix(缺陷管理): 修改缺陷回收站恢复权限位

This commit is contained in:
song-cc-rock 2024-06-26 14:49:04 +08:00 committed by 刘瑞斌
parent 18cf45c837
commit d7142366b4
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ public class BugTrashController {
@GetMapping("/recover/{id}") @GetMapping("/recover/{id}")
@Operation(summary = "缺陷管理-回收站-恢复") @Operation(summary = "缺陷管理-回收站-恢复")
@RequiresPermissions(PermissionConstants.PROJECT_BUG_UPDATE) @RequiresPermissions(PermissionConstants.PROJECT_BUG_DELETE)
@Log(type = OperationLogType.RECOVER, expression = "#msClass.recoverLog(#id)", msClass = BugLogService.class) @Log(type = OperationLogType.RECOVER, expression = "#msClass.recoverLog(#id)", msClass = BugLogService.class)
public void recover(@PathVariable String id) { public void recover(@PathVariable String id) {
bugService.recover(id); bugService.recover(id);
@ -59,7 +59,7 @@ public class BugTrashController {
@PostMapping("/batch-recover") @PostMapping("/batch-recover")
@Operation(summary = "缺陷管理-回收站-批量恢复") @Operation(summary = "缺陷管理-回收站-批量恢复")
@RequiresPermissions(PermissionConstants.PROJECT_BUG_UPDATE) @RequiresPermissions(PermissionConstants.PROJECT_BUG_DELETE)
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project") @CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
public void batchRecover(@Validated @RequestBody BugBatchRequest request) { public void batchRecover(@Validated @RequestBody BugBatchRequest request) {
request.setUseTrash(true); request.setUseTrash(true);