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);