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 68c59a7a..2a6a58c8 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java @@ -89,11 +89,6 @@ 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); @@ -120,6 +115,13 @@ public class Mngt01Controller extends ApplicationController { } mav.addObject("ntcInfo", json ? info : toJson(info)); + FimsUser currentUser = (FimsUser) currentUser().getUser(); + if(currentUser.getCntnSeCd().equals("01")) { + mav.addObject("isPublicOfficer", true); + } else { + mav.addObject("isPublicOfficer", false); + } + List allSggList = sggDeptService.getSigunguList(new SigunguQuery()); mav.addObject("sggList", allSggList);