fix: 只读用户点击接口自动花报错的问题修复

This commit is contained in:
Captain.B 2020-12-23 17:00:34 +08:00
parent 71686be223
commit 0f88a8168b
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ public class ApiAutomationController {
@PostMapping("/list/{goPage}/{pageSize}")
@RequiresRoles(value = {RoleConstants.TEST_MANAGER, RoleConstants.TEST_USER, RoleConstants.TEST_VIEWER}, logical = Logical.OR)
public Pager<List<ApiScenarioDTO>> list(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody ApiScenarioRequest request) {
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
request.setWorkspaceId(SessionUtils.getCurrentWorkspaceId());