处理: 超级管理员不需验证权限

This commit is contained in:
TinyAnts
2023-03-14 09:43:27 +08:00
parent 3a6f6bef97
commit 44975bfd86

View File

@@ -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);
}
}
}