From 81412c768a74407fe09d4d3380db36e7a46f3139 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 7 Apr 2023 14:54:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=88=90=E5=91=98=E6=B2=A1=E6=9C=89=E9=AA=8C=E8=AF=81=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/metersphere/controller/UserController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system-setting/backend/src/main/java/io/metersphere/controller/UserController.java b/system-setting/backend/src/main/java/io/metersphere/controller/UserController.java index 8083bd9d0e..d15d0bc854 100644 --- a/system-setting/backend/src/main/java/io/metersphere/controller/UserController.java +++ b/system-setting/backend/src/main/java/io/metersphere/controller/UserController.java @@ -157,11 +157,13 @@ public class UserController { */ @PostMapping("/ws/member/add") @MsAuditLog(module = OperLogModule.WORKSPACE_MEMBER, type = OperLogConstants.CREATE, title = "添加工作空间成员") + @RequiresPermissions(PermissionConstants.WORKSPACE_USER_READ_CREATE) public void addMember(@RequestBody AddMemberRequest request) { userService.addWorkspaceMember(request); } @PostMapping("/project/member/add") + @RequiresPermissions(PermissionConstants.PROJECT_USER_READ_CREATE) public void addProjectMember(@RequestBody AddMemberRequest request) { userService.addProjectMember(request); }