Skip to content

Commit

Permalink
revert(项目设置): 项目列表查看权限恢复
Browse files Browse the repository at this point in the history
  • Loading branch information
song-tianyang authored and Somebody-JIAN committed Jun 20, 2023
1 parent 632aa2e commit 2718063
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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();
Expand Down Expand Up @@ -83,6 +84,7 @@ public Project addProject(@RequestBody AddProjectRequest project, HttpServletReq
}

@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));
Expand Down

0 comments on commit 2718063

Please sign in to comment.