mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
去除组织员工角色分配用户限制
This commit is contained in:
+1
-1
@@ -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, "内置角色无权修改");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user