去除组织员工角色分配用户限制

This commit is contained in:
yangsb
2024-04-23 16:52:20 +08:00
parent 2bd039c9d9
commit a8bad07079
@@ -116,7 +116,7 @@ public class PermissionController {
} }
Set<Long> roleIds = listReqVO.stream().flatMap(e -> e.getRoleIds().stream()).collect(Collectors.toSet()); Set<Long> roleIds = listReqVO.stream().flatMap(e -> e.getRoleIds().stream()).collect(Collectors.toSet());
if(!loginUser.getIsSupAdmin()) { if(!loginUser.getIsSupAdmin()) {
if(roleIds.contains(ORGAN_ADMIN_ROLE_ID) || roleIds.contains(ORGAN_STAFF_ROLE_ID)) { if(roleIds.contains(ORGAN_ADMIN_ROLE_ID) ) {
throw new ServiceException(11541, "内置角色无权修改"); throw new ServiceException(11541, "内置角色无权修改");
} }
} }