revert(项目设置): 项目列表查看权限恢复

This commit is contained in:
song-tianyang 2023-06-20 20:34:29 +08:00 committed by 建国
parent 632aa2e0e2
commit 2718063ef8
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ public class ProjectController {
private ApiTestEnvironmentService apiTestEnvironmentService;
@GetMapping("/listAll")
@RequiresPermissions(value = {PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ, PermissionConstants.SYSTEM_USER_READ}, logical = Logical.OR)
public List<ProjectDTO> listAll() {
String currentWorkspaceId = SessionUtils.getCurrentWorkspaceId();
ProjectRequest request = new ProjectRequest();
@ -83,6 +84,7 @@ public class ProjectController {
}
@PostMapping("/list/{goPage}/{pageSize}")
@RequiresPermissions(PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ)
public Pager<List<ProjectDTO>> getProjectList(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody ProjectRequest request) {
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
return PageUtils.setPageInfo(page, projectService.getProjectList(request));