fix(系统设置): 批量将用户加入项目级用户组报错

--bug=1014855 --user=李玉号 [系统设置] github#15756无法给用户组批量分配项目。
https://www.tapd.cn/55049933/s/1201371

Closes #15756
This commit is contained in:
shiziyuan9527 2022-07-14 11:14:06 +08:00 committed by shiziyuan9527
parent b9d0402806
commit 5b1b4575b0
1 changed files with 1 additions and 2 deletions

View File

@ -46,9 +46,8 @@ public class ProjectController {
return projectService.getProjectList(request); return projectService.getProjectList(request);
} }
/*jenkins项目列表*/
@GetMapping("/listAll/{workspaceId}") @GetMapping("/listAll/{workspaceId}")
@RequiresPermissions(PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ) @RequiresPermissions(value = {PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ, PermissionConstants.SYSTEM_USER_READ}, logical = Logical.OR)
public List<ProjectDTO> listAll(@PathVariable String workspaceId) { public List<ProjectDTO> listAll(@PathVariable String workspaceId) {
ProjectRequest request = new ProjectRequest(); ProjectRequest request = new ProjectRequest();
request.setWorkspaceId(workspaceId); request.setWorkspaceId(workspaceId);