修复验证权限失败bug
This commit is contained in:
parent
5c6204f489
commit
bfe604332e
|
|
@ -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" // 退出登录
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue