diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioController.java b/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioController.java index 273ed0bdad..33b4bfa2a8 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioController.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioController.java @@ -215,7 +215,7 @@ public class ApiScenarioController { @Operation(summary = "接口测试-接口场景管理-删除定时任务配置") @RequiresPermissions(PermissionConstants.PROJECT_API_SCENARIO_EXECUTE) @Log(type = OperationLogType.UPDATE, expression = "#msClass.scheduleLog(#request.getScenarioId())", msClass = ApiScenarioLogService.class) - @CheckOwner(resourceId = "#request.getScenarioId()", resourceType = "api_scenario") + @CheckOwner(resourceId = "#scenarioId", resourceType = "api_scenario") @SendNotice(taskType = NoticeConstants.TaskType.SCHEDULE_TASK, event = NoticeConstants.Event.UPDATE, target = "#targetClass.getScheduleNotice(#request)", targetClass = ApiScenarioNoticeService.class) public void deleteScheduleConfig(@PathVariable String scenarioId) { apiValidateService.validateApiMenuInProject(scenarioId, ApiResource.API_SCENARIO.name());