调整权限和数据问题

This commit is contained in:
wenc000 2020-05-29 10:37:21 +08:00
parent d73a27a867
commit ff8c5f2fa8
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}
}