forked from github/dataease
fix: 资源权限逻辑错误
This commit is contained in:
parent
532cdf67b4
commit
6fa6cc83a1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user