Unverified 提交 f1c46e5b authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

Merge pull request #473 from dataease/pr@v1.1@fix_资源权限逻辑错误

fix: 资源权限逻辑错误
...@@ -52,11 +52,11 @@ public class ExtAuthServiceImpl implements ExtAuthService { ...@@ -52,11 +52,11 @@ public class ExtAuthServiceImpl implements ExtAuthService {
} }
if (!CollectionUtils.isEmpty(authMap.get("role"))) { if (!CollectionUtils.isEmpty(authMap.get("role"))) {
authURD.setUserIds(authMap.get("role").stream().map(item -> Long.parseLong(item.getAuthTarget())).collect(Collectors.toList())); authURD.setRoleIds(authMap.get("role").stream().map(item -> Long.parseLong(item.getAuthTarget())).collect(Collectors.toList()));
} }
if (!CollectionUtils.isEmpty(authMap.get("dept"))) { if (!CollectionUtils.isEmpty(authMap.get("dept"))) {
authURD.setUserIds(authMap.get("dept").stream().map(item -> Long.parseLong(item.getAuthTarget())).collect(Collectors.toList())); authURD.setDeptIds(authMap.get("dept").stream().map(item -> Long.parseLong(item.getAuthTarget())).collect(Collectors.toList()));
} }
return authURD; return authURD;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论