Commit 234419be by guojuxing

用户路由权限

parent c8760658
......@@ -41,7 +41,7 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
UserDetail userDetail = UserDetailUtils.getUserDetail();
Map<String, Object> menuUrlMap = userDetail.getMenuUrlMap();
if (menuUrlMap == null) {
return true;
throw new Exception("sorry,您无该页面的访问权限,请联系超级管理员!");
}
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