From 7e07e1bda1726e5544c6bb739b40c2670f40d759 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 12 Aug 2022 14:57:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015794 --user=李玉号 【接口权限】/user/project/member/list/1/10 接口权限控制错误 https://www.tapd.cn/55049933/s/1222956 --- .../src/main/java/io/metersphere/controller/UserController.java | 2 +- .../src/business/components/settings/workspace/MsProject.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/controller/UserController.java b/backend/src/main/java/io/metersphere/controller/UserController.java index b9de777c1c..08b65d148b 100644 --- a/backend/src/main/java/io/metersphere/controller/UserController.java +++ b/backend/src/main/java/io/metersphere/controller/UserController.java @@ -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> getProjectMemberList(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody QueryMemberRequest request) { Page page = PageHelper.startPage(goPage, pageSize, true); return PageUtils.setPageInfo(page, userService.getProjectMemberList(request)); diff --git a/frontend/src/business/components/settings/workspace/MsProject.vue b/frontend/src/business/components/settings/workspace/MsProject.vue index 01ee7f93fa..232ada90ec 100644 --- a/frontend/src/business/components/settings/workspace/MsProject.vue +++ b/frontend/src/business/components/settings/workspace/MsProject.vue @@ -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;