|
@@ -34,20 +34,7 @@ public class UserInfo {
|
|
|
}
|
|
}
|
|
|
this.role = sb.toString();
|
|
this.role = sb.toString();
|
|
|
}
|
|
}
|
|
|
- this.sys = false;
|
|
|
|
|
- if (!CollectionUtils.isEmpty(user.getRoles())) { // 获取用户在该企业的权限
|
|
|
|
|
- for (Role role: user.getRoles()) {
|
|
|
|
|
- if (!CollectionUtils.isEmpty(user.getEnterprises())) {
|
|
|
|
|
- if (null != user.getEnterprise()) {
|
|
|
|
|
- if (role.getEnUU().equals(user.getEnterprise().getUu())) {
|
|
|
|
|
- if (role.isSys()) {
|
|
|
|
|
- this.sys = true;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.sys = user.isSys();
|
|
|
if (!CollectionUtils.isEmpty(user.getEnterprises())) {
|
|
if (!CollectionUtils.isEmpty(user.getEnterprises())) {
|
|
|
Enterprise current = user.getEnterprise();
|
|
Enterprise current = user.getEnterprise();
|
|
|
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
|
|
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
|