| Line 1459... |
Line 1459... |
| 1459 |
|
1459 |
|
| 1460 |
// Only these admins may block/unblock a partner's credit.
|
1460 |
// Only these admins may block/unblock a partner's credit.
|
| 1461 |
private void assertCreditBlockAdmin(HttpServletRequest request) throws ProfitMandiBusinessException {
|
1461 |
private void assertCreditBlockAdmin(HttpServletRequest request) throws ProfitMandiBusinessException {
|
| 1462 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
1462 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 1463 |
String email = loginDetails.getEmailId();
|
1463 |
String email = loginDetails.getEmailId();
|
| 1464 |
boolean isAdmin = "tarun.verma@smartdukaan.com".equals(email) || "kamini.sharma@smartdukaan.com".equals(email);
|
1464 |
boolean isAdmin = "tarun.verma@smartdukaan.com".equals(email) || "kamini.sharma@smartdukaan.com".equals(email) || "siddharth.chaturvedi@smartdukaan.com".equals(email);
|
| 1465 |
if (!isAdmin) {
|
1465 |
if (!isAdmin) {
|
| 1466 |
throw new ProfitMandiBusinessException("You are not authorized to block/unblock credit", "", "");
|
1466 |
throw new ProfitMandiBusinessException("You are not authorized to block/unblock credit", "", "");
|
| 1467 |
}
|
1467 |
}
|
| 1468 |
}
|
1468 |
}
|
| 1469 |
|
1469 |
|