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