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 f2c-ci-robot[bot]
parent 3ba6a9caa8
commit 2d2b56767a
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

@ -433,7 +433,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;