From f4182da439cf7188f56798d0f775acaf2fbb5dd4 Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Fri, 27 Sep 2024 16:13:13 +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=E6=94=B9=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=8E=A5=E5=8F=A3=E7=9A=84=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/controller/definition/ApiDefinitionController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiDefinitionController.java b/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiDefinitionController.java index 49cc1188cd..e68c5d294a 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiDefinitionController.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiDefinitionController.java @@ -320,7 +320,7 @@ public class ApiDefinitionController { @GetMapping("/stop/{taskId}") @Operation(summary = "接口测试-接口管理-导出-停止导出") - @RequiresPermissions(PermissionConstants.FUNCTIONAL_CASE_READ_EXPORT) + @RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_EXPORT) @CheckOwner(resourceId = "#projectId", resourceType = "project") public void caseStopExport(@PathVariable String taskId) { apiDefinitionExportService.stopExport(taskId, SessionUtils.getUserId()); @@ -328,7 +328,7 @@ public class ApiDefinitionController { @GetMapping(value = "/download/file/{projectId}/{fileId}") @Operation(summary = "接口测试-接口管理-下载文件") - @RequiresPermissions(PermissionConstants.FUNCTIONAL_CASE_READ_EXPORT) + @RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_EXPORT) @CheckOwner(resourceId = "#projectId", resourceType = "project") public void downloadImgById(@PathVariable String projectId, @PathVariable String fileId, HttpServletResponse httpServletResponse) { apiDefinitionExportService.downloadFile(projectId, fileId, SessionUtils.getUserId(), httpServletResponse);