fix(系统设置): 修复系统设置-项目管理-添加项目成员失败的问题
--bug=1025257 --user=郭雨琦 https://www.tapd.cn/55049933/prong/stories/view/1155049933001025257
This commit is contained in:
parent
6cac62f00f
commit
f93ff7d24f
|
@ -52,6 +52,7 @@ public class PermissionConstants {
|
|||
public static final String WORKSPACE_PROJECT_MANAGER_READ_CREATE = "WORKSPACE_PROJECT_MANAGER:READ+CREATE";
|
||||
public static final String WORKSPACE_PROJECT_MANAGER_READ_EDIT = "WORKSPACE_PROJECT_MANAGER:READ+EDIT";
|
||||
public static final String WORKSPACE_PROJECT_MANAGER_READ_DELETE = "WORKSPACE_PROJECT_MANAGER:READ+DELETE";
|
||||
public static final String WORKSPACE_PROJECT_MANAGER_READ_ADD_USER = "WORKSPACE_PROJECT_MANAGER:READ+ADD_USER";
|
||||
|
||||
public static final String WORKSPACE_PROJECT_ENVIRONMENT_READ = "WORKSPACE_PROJECT_ENVIRONMENT:READ";
|
||||
public static final String WORKSPACE_PROJECT_ENVIRONMENT_READ_CREATE = "WORKSPACE_PROJECT_ENVIRONMENT:READ+CREATE";
|
||||
|
|
|
@ -163,7 +163,8 @@ public class UserController {
|
|||
}
|
||||
|
||||
@PostMapping("/project/member/add")
|
||||
@RequiresPermissions(PermissionConstants.PROJECT_USER_READ_CREATE)
|
||||
@RequiresPermissions(value = {PermissionConstants.PROJECT_USER_READ_CREATE, PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ_ADD_USER}, logical = Logical.OR)
|
||||
|
||||
public void addProjectMember(@RequestBody AddMemberRequest request) {
|
||||
userService.addProjectMember(request);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue