헤더영역 후불제 정보 조회 오류 추가 수정
- 관리자 권한이 아닌 경우에만 실행 되도록 예외 처리 추가
This commit is contained in:
parent
a085e6b35f
commit
0f20265e28
@ -1169,18 +1169,24 @@ public class MainController {
|
|||||||
|
|
||||||
model.addAttribute("myBankList", myBankList);
|
model.addAttribute("myBankList", myBankList);
|
||||||
|
|
||||||
|
String auth = loginVO.getAuthority();
|
||||||
//후불회원 여부 조회
|
|
||||||
UserManageVO userManageVO = new UserManageVO();
|
|
||||||
|
|
||||||
if(!userId.equals("")) {
|
|
||||||
userManageVO.setMberId(userId);
|
|
||||||
userManageVO = userManageService.selectAdminSmsNoticeYn(userManageVO);
|
|
||||||
}
|
|
||||||
|
|
||||||
String prePaymentYn = "";
|
String prePaymentYn = "";
|
||||||
if(userManageVO.getPrePaymentYn() != null) {
|
|
||||||
prePaymentYn = userManageVO.getPrePaymentYn();
|
//사용자 권한인 경우만 실행
|
||||||
|
if(!auth.equals("ROLE_ADMIN")) {
|
||||||
|
|
||||||
|
//후불회원 여부 조회
|
||||||
|
UserManageVO userManageVO = new UserManageVO();
|
||||||
|
|
||||||
|
if(!userId.equals("")) {
|
||||||
|
userManageVO.setMberId(userId);
|
||||||
|
userManageVO = userManageService.selectAdminSmsNoticeYn(userManageVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(userManageVO.getPrePaymentYn() != null) {
|
||||||
|
prePaymentYn = userManageVO.getPrePaymentYn();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
model.addAttribute("prePaymentYn", prePaymentYn);
|
model.addAttribute("prePaymentYn", prePaymentYn);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user