处理: 超级管理员不需验证权限
This commit is contained in:
parent
3a6f6bef97
commit
44975bfd86
|
|
@ -182,9 +182,11 @@ public class LikeAdminInterceptor implements HandlerInterceptor {
|
||||||
LikeAdminThreadLocal.put("postIds", adminUser.getPostIds());
|
LikeAdminThreadLocal.put("postIds", adminUser.getPostIds());
|
||||||
|
|
||||||
// 权限校验
|
// 权限校验
|
||||||
|
if (!adminUser.getId().equals(1)) {
|
||||||
this.checkAuth(method, reqUri);
|
this.checkAuth(method, reqUri);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 权限验证
|
* 权限验证
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue