mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
修改角色中部门及以下权限问题
This commit is contained in:
parent
0bac283864
commit
1044e1ac72
@ -385,6 +385,8 @@ public class PermissionServiceImpl implements PermissionService {
|
|||||||
if (Objects.equals(role.getDataScope(), DataScopeEnum.DEPT_AND_CHILD.getScope())) {
|
if (Objects.equals(role.getDataScope(), DataScopeEnum.DEPT_AND_CHILD.getScope())) {
|
||||||
List<DeptDO> depts = deptService.getDeptsByParentIdFromCache(loginUser.getDeptId(), true);
|
List<DeptDO> depts = deptService.getDeptsByParentIdFromCache(loginUser.getDeptId(), true);
|
||||||
CollUtil.addAll(result.getDeptIds(), CollectionUtils.convertList(depts, DeptDO::getId));
|
CollUtil.addAll(result.getDeptIds(), CollectionUtils.convertList(depts, DeptDO::getId));
|
||||||
|
//添加本身部门id
|
||||||
|
CollUtil.addAll(result.getDeptIds(), loginUser.getDeptId());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// 情况五,SELF
|
// 情况五,SELF
|
||||||
|
Loading…
Reference in New Issue
Block a user