fix: 修复添加成员没有验证项目的问题

This commit is contained in:
CaptainB 2023-04-07 14:54:55 +08:00 committed by 刘瑞斌
parent 07c49aa17e
commit 81412c768a
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}