fix: 修复添加成员没有验证项目的问题
This commit is contained in:
parent
07c49aa17e
commit
81412c768a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue