mirror of https://gitee.com/maxjhandsome/pig
fixed: 路径匹配问题
This commit is contained in:
parent
451ff099d2
commit
73379652c9
|
@ -37,7 +37,7 @@ public class PermissionServiceImpl implements PermissionService {
|
||||||
if (principal != null) {
|
if (principal != null) {
|
||||||
Set<String> urls = menuService.findMenuByRole(grantedAuthorityList.get(0).getAuthority());
|
Set<String> urls = menuService.findMenuByRole(grantedAuthorityList.get(0).getAuthority());
|
||||||
for (String url : urls) {
|
for (String url : urls) {
|
||||||
if (antPathMatcher.match(request.getRequestURI(), url)) {
|
if (antPathMatcher.match(url,request.getRequestURI())) {
|
||||||
hasPermission = true;
|
hasPermission = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue