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