标签调整,优化

This commit is contained in:
yaoyuan2.chu
2020-11-11 23:39:08 +08:00
parent 16a0e65627
commit ae0650fac4
46 changed files with 769 additions and 634 deletions
@@ -9,19 +9,19 @@ import java.util.List;
/**
* RBAC数据模型控制权限
* @author charlie
*
* @author charlie
*/
@Component("rbacPermission")
public class RbacPermission{
public class RbacPermission {
private AntPathMatcher antPathMatcher = new AntPathMatcher();
private AntPathMatcher antPathMatcher = new AntPathMatcher();
public boolean hasPermission(HttpServletRequest request, Authentication authentication) {
Object principal = authentication.getPrincipal();
boolean hasPermission = false;
public boolean hasPermission(HttpServletRequest request, Authentication authentication) {
Object principal = authentication.getPrincipal();
boolean hasPermission = false;
hasPermission = true;
hasPermission = true;
// if (principal instanceof UserEntity) {
// // 读取用户所拥有的权限菜单
// List<Menu> menus = ((UserEntity) principal).getRoleMenus();
@@ -33,6 +33,6 @@ public class RbacPermission{
// }
// }
// }
return hasPermission;
}
return hasPermission;
}
}