mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-07 23:57:20 +08:00
修复验证权限失败bug
This commit is contained in:
@@ -110,8 +110,8 @@ public class LikeAdminInterceptor implements HandlerInterceptor {
|
||||
LikeAdminThreadLocal.put("nickname", map.get("nickname").toString());
|
||||
|
||||
// 免权限验证接口
|
||||
List<String> notAuthUri = Arrays.asList(AdminConfig.notLoginUri);
|
||||
if (notAuthUri.contains(request.getRequestURI()) || Integer.parseInt(uid) == 1) {
|
||||
List<String> notAuthUri = Arrays.asList(AdminConfig.notAuthUri);
|
||||
if (notAuthUri.contains(auths) || Integer.parseInt(uid) == 1) {
|
||||
return HandlerInterceptor.super.preHandle(request, response, handler);
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ public class AdminConfig {
|
||||
public static String[] notAuthUri = new String[]{
|
||||
"system:admin:upInfo", // 管理员更新
|
||||
"system:admin:self", // 管理员信息
|
||||
"system/logout" // 退出登录
|
||||
"system:logout" // 退出登录
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user