fix(系统设置): 修复有编辑用户权限,无法批量操作的缺陷

--bug=1035376 --user=王孝刚 【系统设置】系统-用户组-组织成员-勾选成员修改权限,无法批量编辑成员 https://www.tapd.cn/55049933/s/1472170
This commit is contained in:
wxg0103 2024-03-09 11:31:48 +08:00 committed by Craftsman
parent 3709ea0e12
commit 571c86edf0
2 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ public class OrganizationController {
@PostMapping("/project/add-member")
@Operation(summary = "系统设置-组织-成员-添加组织成员至项目")
@RequiresPermissions(value = {PermissionConstants.ORGANIZATION_MEMBER_UPDATE, PermissionConstants.PROJECT_USER_READ_ADD})
@RequiresPermissions(PermissionConstants.ORGANIZATION_MEMBER_UPDATE)
public void addMemberToProject(@Validated @RequestBody OrgMemberExtendProjectRequest orgMemberExtendProjectRequest) {
organizationService.addMemberToProject(orgMemberExtendProjectRequest, SessionUtils.getUserId());
}

View File

@ -225,12 +225,12 @@
{
label: 'organization.member.batchActionAddProject',
eventTag: 'batchAddProject',
permission: ['ORGANIZATION_MEMBER:READ+ADD'],
permission: ['ORGANIZATION_MEMBER:READ+UPDATE'],
},
{
label: 'organization.member.batchActionAddUserGroup',
eventTag: 'batchAddUserGroup',
permission: ['ORGANIZATION_MEMBER:READ+ADD'],
permission: ['ORGANIZATION_MEMBER:READ+UPDATE'],
},
],
};
@ -239,7 +239,7 @@
{
tableKey: TableKeyEnum.ORGANIZATION_MEMBER,
scroll: { x: 1600 },
selectable: !!hasAnyPermission(['ORGANIZATION_MEMBER:READ+ADD', 'ORGANIZATION_MEMBER:READ+ADD']),
selectable: hasAnyPermission(['ORGANIZATION_MEMBER:READ+ADD', 'ORGANIZATION_MEMBER:READ+UPDATE']),
heightUsed: 288,
showSetting: true,
showJumpMethod: true,