메뉴권한 미존재 유저 접속 시 빈 화면 frame 노출 처리

This commit is contained in:
dogyeom
2025-11-26 13:11:32 +09:00
parent 49e5d15034
commit f3b2e02aba
4 changed files with 39 additions and 2 deletions
@@ -0,0 +1,23 @@
<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ page import="java.io.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Expires", "0");
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<jsp:include page="/jsp/common/include/css.jsp"/>
<jsp:include page="/jsp/common/include/script.jsp"/>
</head>
<body>
<!-- 메뉴권한 미존재 유저 빈 화면 frame 노출 20251126 -->
<div class="right_box">
<div class="content_top"></div>
<div class="content_middle" id="title"></div>
</div>
</body>
</html>
+2 -1
View File
@@ -63,7 +63,8 @@
</head>
<body>
<div class="left_box">
<div class="title"><%=menuName%></div>
<!-- 메뉴명이 null일 경우 공백 노출되도록 처리 20251126 -->
<div class="title"><%=menuName != null ? menuName : ""%></div>
<ul class="depth3">
<%
for (MenuUI menuUi : list) {
+3 -1
View File
@@ -411,7 +411,9 @@
<%} else {%>
goPage2('/monitoring/leftMenu.do?menuId=<%=firstTopMenuId%>', '<%=firstSubMenuUrl%>?menuId=<%=firstSubMenuId%>', '<%=firstSubMenuId%>');
<%}%>
<%} else {%>
// 메뉴권한이 없는 유저 로그인 시 빈화면 프레임을 노출 20251126
goPage2('/monitoring/leftMenu.do?menuId=00', '/monitoring/blankScreen.do', '');
<%}%>
}
@@ -122,5 +122,16 @@ public class MenuRenderController extends BaseAnnotationController {
return "/common/screen/top_04";
}
/**
* 메뉴권한 미존재 유저 접속 시 빈 화면 frame 노출 20251126
*
* @return 빈 화면 (blank_screen)
*/
@GetMapping("/blankScreen.do")
public String getBlankScreen(HttpServletRequest request, String serviceType, ModelMap modelMap) throws Exception {
return "/common/screen/blank_screen";
}
}