权限非空判定问题处理

This commit is contained in:
Chopper 2021-12-08 19:35:18 +08:00
parent 2e99c26654
commit 450041bb02

View File

@ -117,7 +117,7 @@ public class ManagerAuthenticationFilter extends BasicAuthenticationFilter {
* @return 是否拥有权限
*/
boolean match(List<String> permissions, String url) {
if (permissions.isEmpty()) {
if (permissions == null || permissions.isEmpty()) {
return false;
}
return PatternMatchUtils.simpleMatch(permissions.toArray(new String[0]), url);