diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalCaseAttachmentController.java b/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalCaseAttachmentController.java index 563aed61bf..0341b4aac5 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalCaseAttachmentController.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalCaseAttachmentController.java @@ -66,7 +66,13 @@ public class FunctionalCaseAttachmentController { @PostMapping("/page") @Operation(summary = "用例管理-功能用例-附件-关联文件列表分页接口") - @RequiresPermissions(PermissionConstants.FUNCTIONAL_CASE_READ) + @RequiresPermissions(value = { + PermissionConstants.FUNCTIONAL_CASE_READ, + PermissionConstants.PROJECT_API_DEBUG_READ, + PermissionConstants.PROJECT_API_DEFINITION_READ, + PermissionConstants.PROJECT_API_DEFINITION_CASE_READ, + PermissionConstants.PROJECT_API_SCENARIO_READ, + }, logical = Logical.OR) @CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project") public Pager> page(@Validated @RequestBody FileMetadataTableRequest request) { return fileMetadataService.page(request);