调整权限和数据问题
This commit is contained in:
parent
d73a27a867
commit
ff8c5f2fa8
Binary file not shown.
@ -124,7 +124,7 @@ public class ClientRbacServiceImpl implements IClientRbacService {
|
|||||||
private boolean hasSavePermission(String contextPath, String uri, RoleGrantedAuthority roleGrantedAuthority, AntPathMatcher antPathMatcher) {
|
private boolean hasSavePermission(String contextPath, String uri, RoleGrantedAuthority roleGrantedAuthority, AntPathMatcher antPathMatcher) {
|
||||||
// 匹配接口权限
|
// 匹配接口权限
|
||||||
for (PermissionBO permissionBO : roleGrantedAuthority.getPermissionInsert()) {
|
for (PermissionBO permissionBO : roleGrantedAuthority.getPermissionInsert()) {
|
||||||
if (antPathMatcher.match(permissionBO.getPermissionUrl(), uri)) {
|
if (antPathMatcher.match(contextPath + permissionBO.getPermissionUrl(), uri)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -167,7 +167,7 @@ public class ClientRbacServiceImpl implements IClientRbacService {
|
|||||||
private boolean hasDeletePermission(String contextPath, String uri, RoleGrantedAuthority roleGrantedAuthority, AntPathMatcher antPathMatcher) {
|
private boolean hasDeletePermission(String contextPath, String uri, RoleGrantedAuthority roleGrantedAuthority, AntPathMatcher antPathMatcher) {
|
||||||
// 匹配接口权限
|
// 匹配接口权限
|
||||||
for (PermissionBO permissionBO : roleGrantedAuthority.getPermissionDelete()) {
|
for (PermissionBO permissionBO : roleGrantedAuthority.getPermissionDelete()) {
|
||||||
if (antPathMatcher.match(permissionBO.getPermissionUrl(), uri)) {
|
if (antPathMatcher.match(contextPath + permissionBO.getPermissionUrl(), uri)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -202,7 +202,7 @@ public class ClientRbacServiceImpl implements IClientRbacService {
|
|||||||
private boolean hasUpdatePermission(String contextPath, String uri, RoleGrantedAuthority roleGrantedAuthority, AntPathMatcher antPathMatcher) {
|
private boolean hasUpdatePermission(String contextPath, String uri, RoleGrantedAuthority roleGrantedAuthority, AntPathMatcher antPathMatcher) {
|
||||||
// 匹配接口权限
|
// 匹配接口权限
|
||||||
for (PermissionBO permissionBO : roleGrantedAuthority.getPermissionUpdate()) {
|
for (PermissionBO permissionBO : roleGrantedAuthority.getPermissionUpdate()) {
|
||||||
if (antPathMatcher.match(permissionBO.getPermissionUrl(), uri)) {
|
if (antPathMatcher.match(contextPath + permissionBO.getPermissionUrl(), uri)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -245,7 +245,7 @@ public class ClientRbacServiceImpl implements IClientRbacService {
|
|||||||
private boolean hasQueryPermission(String contextPath, String uri, RoleGrantedAuthority roleGrantedAuthority, AntPathMatcher antPathMatcher) {
|
private boolean hasQueryPermission(String contextPath, String uri, RoleGrantedAuthority roleGrantedAuthority, AntPathMatcher antPathMatcher) {
|
||||||
// 匹配接口权限
|
// 匹配接口权限
|
||||||
for (PermissionBO permissionBO : roleGrantedAuthority.getPermissionQuery()) {
|
for (PermissionBO permissionBO : roleGrantedAuthority.getPermissionQuery()) {
|
||||||
if (antPathMatcher.match(permissionBO.getPermissionUrl(), uri)) {
|
if (antPathMatcher.match(contextPath + permissionBO.getPermissionUrl(), uri)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user