헤더영역 후불제 정보 조회 오류 추가 수정 - 관리자 권한이 아닌 경우에만 실행 되도록 예외 처리 추가
- 관리자 권한이 아닌 경우에만 실행 되도록 예외 처리 추가
@0f20265e283fce0c6c9163fcefad2d13f8ab6bdd
--- src/main/java/itn/web/MainController.java
+++ src/main/java/itn/web/MainController.java
... | ... | @@ -1169,18 +1169,24 @@ |
| 1169 | 1169 |
|
| 1170 | 1170 |
model.addAttribute("myBankList", myBankList);
|
| 1171 | 1171 |
|
| 1172 |
- |
|
| 1173 |
- //후불회원 여부 조회 |
|
| 1174 |
- UserManageVO userManageVO = new UserManageVO(); |
|
| 1175 |
- |
|
| 1176 |
- if(!userId.equals("")) {
|
|
| 1177 |
- userManageVO.setMberId(userId); |
|
| 1178 |
- userManageVO = userManageService.selectAdminSmsNoticeYn(userManageVO); |
|
| 1179 |
- } |
|
| 1180 |
- |
|
| 1172 |
+ String auth = loginVO.getAuthority(); |
|
| 1181 | 1173 |
String prePaymentYn = ""; |
| 1182 |
- if(userManageVO.getPrePaymentYn() != null) {
|
|
| 1183 |
- prePaymentYn = userManageVO.getPrePaymentYn(); |
|
| 1174 |
+ |
|
| 1175 |
+ //사용자 권한인 경우만 실행 |
|
| 1176 |
+ if(!auth.equals("ROLE_ADMIN")) {
|
|
| 1177 |
+ |
|
| 1178 |
+ //후불회원 여부 조회 |
|
| 1179 |
+ UserManageVO userManageVO = new UserManageVO(); |
|
| 1180 |
+ |
|
| 1181 |
+ if(!userId.equals("")) {
|
|
| 1182 |
+ userManageVO.setMberId(userId); |
|
| 1183 |
+ userManageVO = userManageService.selectAdminSmsNoticeYn(userManageVO); |
|
| 1184 |
+ } |
|
| 1185 |
+ |
|
| 1186 |
+ if(userManageVO.getPrePaymentYn() != null) {
|
|
| 1187 |
+ prePaymentYn = userManageVO.getPrePaymentYn(); |
|
| 1188 |
+ } |
|
| 1189 |
+ |
|
| 1184 | 1190 |
} |
| 1185 | 1191 |
model.addAttribute("prePaymentYn", prePaymentYn);
|
| 1186 | 1192 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?