diff --git a/cloud-common-plugin-dynamic/src/main/resources/assets.zip b/cloud-common-plugin-dynamic/src/main/resources/assets.zip index f074426..304a8ac 100644 Binary files a/cloud-common-plugin-dynamic/src/main/resources/assets.zip and b/cloud-common-plugin-dynamic/src/main/resources/assets.zip differ diff --git a/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/service/rbac/impl/ClientRbacServiceImpl.java b/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/service/rbac/impl/ClientRbacServiceImpl.java index 8fb2169..f38f51b 100644 --- a/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/service/rbac/impl/ClientRbacServiceImpl.java +++ b/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/service/rbac/impl/ClientRbacServiceImpl.java @@ -124,7 +124,7 @@ public class ClientRbacServiceImpl implements IClientRbacService { private boolean hasSavePermission(String contextPath, String uri, RoleGrantedAuthority roleGrantedAuthority, AntPathMatcher antPathMatcher) { // 匹配接口权限 for (PermissionBO permissionBO : roleGrantedAuthority.getPermissionInsert()) { - if (antPathMatcher.match(permissionBO.getPermissionUrl(), uri)) { + if (antPathMatcher.match(contextPath + permissionBO.getPermissionUrl(), uri)) { return true; } } @@ -167,7 +167,7 @@ public class ClientRbacServiceImpl implements IClientRbacService { private boolean hasDeletePermission(String contextPath, String uri, RoleGrantedAuthority roleGrantedAuthority, AntPathMatcher antPathMatcher) { // 匹配接口权限 for (PermissionBO permissionBO : roleGrantedAuthority.getPermissionDelete()) { - if (antPathMatcher.match(permissionBO.getPermissionUrl(), uri)) { + if (antPathMatcher.match(contextPath + permissionBO.getPermissionUrl(), uri)) { return true; } } @@ -202,7 +202,7 @@ public class ClientRbacServiceImpl implements IClientRbacService { private boolean hasUpdatePermission(String contextPath, String uri, RoleGrantedAuthority roleGrantedAuthority, AntPathMatcher antPathMatcher) { // 匹配接口权限 for (PermissionBO permissionBO : roleGrantedAuthority.getPermissionUpdate()) { - if (antPathMatcher.match(permissionBO.getPermissionUrl(), uri)) { + if (antPathMatcher.match(contextPath + permissionBO.getPermissionUrl(), uri)) { return true; } } @@ -245,7 +245,7 @@ public class ClientRbacServiceImpl implements IClientRbacService { private boolean hasQueryPermission(String contextPath, String uri, RoleGrantedAuthority roleGrantedAuthority, AntPathMatcher antPathMatcher) { // 匹配接口权限 for (PermissionBO permissionBO : roleGrantedAuthority.getPermissionQuery()) { - if (antPathMatcher.match(permissionBO.getPermissionUrl(), uri)) { + if (antPathMatcher.match(contextPath + permissionBO.getPermissionUrl(), uri)) { return true; } }