From ae4494879dcc53c4400debbe96220c50a3686467 Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Wed, 23 Oct 2024 13:40:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=85=B3=E8=81=94=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1047323 --user=陈建星 [接口测试] github#33361同一个用户,上传文件列表无法关联到文件管理中已上传的文件。 https://www.tapd.cn/55049933/s/1595876 --- .../controller/FunctionalCaseAttachmentController.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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);