|
|
@@ -355,7 +355,7 @@ public class AuthLogic
|
|
355
|
355
|
public boolean hasPermi(Collection<String> authorities, String permission)
|
|
356
|
356
|
{
|
|
357
|
357
|
return authorities.stream().filter(StringUtils::hasText)
|
|
358
|
|
- .anyMatch(x -> ALL_PERMISSION.contains(x) || PatternMatchUtils.simpleMatch(x, permission));
|
|
|
358
|
+ .anyMatch(x -> ALL_PERMISSION.equals(x) || PatternMatchUtils.simpleMatch(x, permission));
|
|
359
|
359
|
}
|
|
360
|
360
|
|
|
361
|
361
|
/**
|
|
|
@@ -368,6 +368,6 @@ public class AuthLogic
|
|
368
|
368
|
public boolean hasRole(Collection<String> roles, String role)
|
|
369
|
369
|
{
|
|
370
|
370
|
return roles.stream().filter(StringUtils::hasText)
|
|
371
|
|
- .anyMatch(x -> SUPER_ADMIN.contains(x) || PatternMatchUtils.simpleMatch(x, role));
|
|
|
371
|
+ .anyMatch(x -> SUPER_ADMIN.equals(x) || PatternMatchUtils.simpleMatch(x, role));
|
|
372
|
372
|
}
|
|
373
|
373
|
}
|