diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java index 8fe3da7f..68c59a7a 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java @@ -57,6 +57,13 @@ public class Mngt01Controller extends ApplicationController { List allSggList = sggDeptService.getSigunguList(new SigunguQuery()); mav.addObject("sggList", allSggList); + FimsUser currentUser = (FimsUser) currentUser().getUser(); + if(currentUser.getCntnSeCd().equals("01")) { + mav.addObject("isPublicOfficer", true); + } else { + mav.addObject("isPublicOfficer", false); + } + return mav; } @@ -82,6 +89,12 @@ public class Mngt01Controller extends ApplicationController { req.setUserSggCd(currentUser.getOrgID()); req.setUserCntnSeCd(currentUser.getCntnSeCd()); } + if(currentUser.getCntnSeCd().equals("01")) { + mav.addObject("isPublicOfficer", true); + } else { + mav.addObject("isPublicOfficer", false); + } + List list = ntcService.getNtcList(req); return setPagingInfo(mav, list, "");