| Line 444... |
Line 444... |
| 444 |
@RequestParam(name = ProfitMandiConstants.FOFO_ID) int fofoId, Model model) throws Exception {
|
444 |
@RequestParam(name = ProfitMandiConstants.FOFO_ID) int fofoId, Model model) throws Exception {
|
| 445 |
FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
|
445 |
FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
|
| 446 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
446 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 447 |
if (!Arrays
|
447 |
if (!Arrays
|
| 448 |
.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com", "amit.gupta@smartdukaan.com",
|
448 |
.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com", "amit.gupta@smartdukaan.com",
|
| 449 |
"rahul.katyal@smartdukaan.com", "tejbeer.kaur@smartdukaan.com", "sm@smartdukaan.com")
|
449 |
"rahul.katyal@smartdukaan.com", "vikas.jangra@smartdukaan.com", "sm@smartdukaan.com")
|
| 450 |
.contains(loginDetails.getEmailId())) {
|
450 |
.contains(loginDetails.getEmailId())) {
|
| 451 |
throw new ProfitMandiBusinessException("Access Denied", "Unauthorised Access",
|
451 |
throw new ProfitMandiBusinessException("Access Denied", "Unauthorised Access",
|
| 452 |
"You are not authorise to deactivate retailer");
|
452 |
"You are not authorise to deactivate retailer");
|
| 453 |
}
|
453 |
}
|
| 454 |
fofoStore.setActive(false);
|
454 |
fofoStore.setActive(false);
|