Skip to content

Commit

Permalink
fix(接口测试): 修复场景只有执行权限无法正常执行的缺陷
Browse files Browse the repository at this point in the history
--bug=1027262 --user=王孝刚 【接口测试】接口自动化开启执行场景权限,执行单一场景则跳转至系统设置(批量执行正确)
https://www.tapd.cn/55049933/s/1385027
  • Loading branch information
wxg0103 authored and fit2-zhao committed Jun 25, 2023
1 parent bf1cb77 commit b54394e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -202,7 +202,7 @@ public List<ApiScenarioDTO> getApiScenarios(@RequestBody List<String> ids) {
}

@PostMapping(value = "/run/debug")
@RequiresPermissions(PermissionConstants.PROJECT_API_SCENARIO_READ_DEBUG)
@RequiresPermissions(value = {PermissionConstants.PROJECT_API_SCENARIO_READ_DEBUG, PermissionConstants.PROJECT_API_SCENARIO_READ_RUN}, logical = Logical.OR)
@MsAuditLog(module = OperLogModule.API_AUTOMATION, type = OperLogConstants.DEBUG, title = "#request.scenarioName", sourceId = "#request.scenarioId", project = "#request.projectId")
public String runDebug(@RequestPart("request") RunDefinitionRequest request,
@RequestPart(value = "bodyFiles", required = false) List<MultipartFile> bodyFiles, @RequestPart(value = "scenarioFiles", required = false) List<MultipartFile> scenarioFiles) {
Expand Down

0 comments on commit b54394e

Please sign in to comment.