Update PermissionInterceptor.java

This commit is contained in:
jinbooks_dev
2025-06-16 09:29:19 +08:00
parent c879275db1
commit bc11aaac99

View File

@ -86,14 +86,6 @@ public class PermissionInterceptor implements AsyncHandlerInterceptor {
return false;
}
//管理端必须使用管理员登录,非管理员用户直接注销
if (this.mgmt && !principal.isRoleAdministrators()) {
logger.debug("Not ADMINISTRATORS Authentication .");
RequestDispatcher dispatcher = request.getRequestDispatcher("/auth/entrypoint");
dispatcher.forward(request, response);
return false;
}
return true;
}