Commit c8760658 by guojuxing

用户路由权限

parent b3402e88
......@@ -40,6 +40,9 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
//判断是否有权限的路径
UserDetail userDetail = UserDetailUtils.getUserDetail();
Map<String, Object> menuUrlMap = userDetail.getMenuUrlMap();
if (menuUrlMap == null) {
return true;
}
if (!menuUrlMap.containsKey(uri)) {
throw new Exception("sorry,您无该页面的访问权限,请联系超级管理员!");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment