fix(接口测试): 接口关联文件,权限问题
--bug=1047323 --user=陈建星 [接口测试] github#33361同一个用户,上传文件列表无法关联到文件管理中已上传的文件。 https://www.tapd.cn/55049933/s/1595876
This commit is contained in:
parent
df33c9f426
commit
ae4494879d
|
@ -66,7 +66,13 @@ public class FunctionalCaseAttachmentController {
|
||||||
|
|
||||||
@PostMapping("/page")
|
@PostMapping("/page")
|
||||||
@Operation(summary = "用例管理-功能用例-附件-关联文件列表分页接口")
|
@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")
|
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
|
||||||
public Pager<List<FileInformationResponse>> page(@Validated @RequestBody FileMetadataTableRequest request) {
|
public Pager<List<FileInformationResponse>> page(@Validated @RequestBody FileMetadataTableRequest request) {
|
||||||
return fileMetadataService.page(request);
|
return fileMetadataService.page(request);
|
||||||
|
|
Loading…
Reference in New Issue