From a019ac1aa94563e08b14fe03857a37787bfee6ae Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 16 Apr 2024 12:35:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=BC=80=E5=90=AF=E5=85=B3=E9=97=AD=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=97=A0=E6=9D=83=E9=99=90=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1039444 --user=王孝刚 【接口测试】接口定时导入-定时任务列表-开启/关闭提示无权限 https://www.tapd.cn/55049933/s/1498189 --- .../definition/ApiDefinitionScheduleController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiDefinitionScheduleController.java b/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiDefinitionScheduleController.java index 0a318acedf..5470a9a664 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiDefinitionScheduleController.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiDefinitionScheduleController.java @@ -45,7 +45,7 @@ public class ApiDefinitionScheduleController { @GetMapping(value = "/switch/{id}") @Operation(summary = "接口测试-接口管理-定时同步-开启/关闭") @RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_IMPORT) - @CheckOwner(resourceId = "#id", resourceType = "api_definition_swagger") + @CheckOwner(resourceId = "#id", resourceType = "schedule") public void updateScheduleEnable(@PathVariable String id) { apiDefinitionScheduleService.switchSchedule(id); } @@ -53,7 +53,7 @@ public class ApiDefinitionScheduleController { @GetMapping("/delete/{id}") @Operation(summary = "接口测试-接口管理-定时同步-删除") @RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_IMPORT) - @CheckOwner(resourceId = "#id", resourceType = "api_definition_swagger") + @CheckOwner(resourceId = "#id", resourceType = "schedule") public void deleteSchedule(@PathVariable String id) { apiDefinitionScheduleService.deleteSchedule(id); }