权限非空判定问题处理
This commit is contained in:
parent
2e99c26654
commit
450041bb02
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user