diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanReportController.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanReportController.java index 3b2d5e27ff..8090a5949f 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanReportController.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanReportController.java @@ -60,7 +60,7 @@ public class TestPlanReportController { @PostMapping("/rename/{id}") @Operation(summary = "测试计划-报告-重命名") @RequiresPermissions(PermissionConstants.TEST_PLAN_REPORT_READ_UPDATE) - @CheckOwner(resourceId = "#request.getId()", resourceType = "test_plan_report") + @CheckOwner(resourceId = "#id", resourceType = "test_plan_report") @Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#id)", msClass = TestPlanReportLogService.class) public void rename(@PathVariable String id, @RequestBody Object name) { testPlanReportService.rename(id, name.toString());