Browse Source

用户菜单修改

gao.qiang 1 year ago
parent
commit
6e89760bf7

+ 1 - 1
base-framework/src/main/java/com/ozs/framework/web/service/SysPermissionService.java

@@ -65,7 +65,7 @@ public class SysPermissionService
         else
         {
             List<SysRole> roles = user.getRoles();
-            if (!roles.isEmpty() && roles.size() > 1)
+            if (!ObjectUtils.isEmpty(roles))
             { 
                 if (!ObjectUtils.isEmpty(roles.stream().filter(r-> "admin".equals(r.getRoleKey())).collect(Collectors.toList()))){
                     perms.add("*:*:*");