fix(系统设置): 接口权限控制问题

--bug=1015794 --user=李玉号 【接口权限】/user/project/member/list/1/10 接口权限控制错误
https://www.tapd.cn/55049933/s/1222956
This commit is contained in:
shiziyuan9527 2022-08-12 14:57:24 +08:00 committed by 刘瑞斌
parent 2297374a46
commit 7e07e1bda1
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ public class UserController {
}
@PostMapping("/project/member/list/{goPage}/{pageSize}")
@RequiresPermissions(value = {PermissionConstants.PROJECT_USER_READ, PermissionConstants.WORKSPACE_USER_READ}, logical = Logical.OR)
@RequiresPermissions(PermissionConstants.PROJECT_USER_READ)
public Pager<List<User>> getProjectMemberList(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody QueryMemberRequest request) {
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
return PageUtils.setPageInfo(page, userService.getProjectMemberList(request));

View File

@ -442,7 +442,7 @@ export default {
this.dialogWsMemberVisible = true;
let param = this.dialogCondition;
this.$set(param, 'projectId', row.id);
let path = "/user/project/member/list";
let path = "/user/ws/project/member/list/" + row.workspaceId;
this.result = this.$post(this.buildPagePath(path), param, res => {
let data = res.data;
this.memberLineData = data.listObject;