fix: 사용자 게시판 등록 버튼 권한별 노출 처리
This commit is contained in:
@@ -1573,9 +1573,24 @@ public class CscController {
|
||||
bbsVO.setBbsTyCd(bbsctt.getBbsTyCd());
|
||||
DataMap bbsInfo = new DataMap();
|
||||
bbsInfo = bbsService.selectBOBbsSetupInfo(bbsVO);
|
||||
|
||||
// 등록 기능 사용 여부와 별개로 현재 사용자의 등록 권한을 확인한다.
|
||||
BOGnrlbbscttVO registAuthBbsctt = new BOGnrlbbscttVO();
|
||||
registAuthBbsctt.setSopmalCd(user.getSopmalCd());
|
||||
registAuthBbsctt.setBbsId(bbsctt.getBbsId());
|
||||
registAuthBbsctt.setServerDv("sopmal");
|
||||
registAuthBbsctt.setAuthDv("REGIST");
|
||||
if (user.getUserInnb() > 0) {
|
||||
registAuthBbsctt.setRegusr(user.getUserInnb());
|
||||
registAuthBbsctt.setMbrDvCd(user.getMbrDvCd());
|
||||
} else {
|
||||
registAuthBbsctt.setRegusr(0);
|
||||
}
|
||||
DataMap registAuth = service.selectBOBbscttAuth(registAuthBbsctt);
|
||||
DataMap content = new DataMap();
|
||||
|
||||
content.put("bbsInfo", bbsInfo);
|
||||
content.put("registAuthResult", registAuth.get("resultAuth"));
|
||||
content.put("bbsctt", bbsctt);
|
||||
content.put("resultList", resultList);
|
||||
content.put("paginationInfo", bbsctt.getPaginationInfo());
|
||||
|
||||
@@ -260,7 +260,7 @@
|
||||
</c:choose>
|
||||
</tbody>
|
||||
</table>
|
||||
<c:if test = "${bbsInfo.bbscttRegist eq 'Y'}">
|
||||
<c:if test = "${bbsInfo.bbscttRegist eq 'Y' and resultMap.registAuthResult eq 'Y'}">
|
||||
<div class="sub-board__top-btn-container">
|
||||
<button type = "button" class="btn outline theme" id = "regBtn"><spring:message code="button.insert"/></button>
|
||||
</div>
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
</c:choose>
|
||||
</tbody>
|
||||
</table>
|
||||
<c:if test = "${bbsInfo.bbscttRegist eq 'Y'}">
|
||||
<c:if test = "${bbsInfo.bbscttRegist eq 'Y' and resultMap.registAuthResult eq 'Y'}">
|
||||
<div class="sub-board__top-btn-container">
|
||||
<button type = "button" class="btn outline theme" id = "regBtn"><spring:message code="button.insert"/></button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user