mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-07 23:57:20 +08:00
处理: 超级管理员不需验证权限
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user