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

fix: 资源权限逻辑错误
This commit is contained in:
fit2cloud-chenyw
2021-08-03 09:50:11 +08:00
committed by GitHub

View File

@@ -52,11 +52,11 @@ public class ExtAuthServiceImpl implements ExtAuthService {
}
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"))) {
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;
}