fix(缺陷管理): 修改缺陷回收站恢复权限位
This commit is contained in:
parent
18cf45c837
commit
d7142366b4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue