Subversion Repositories SmartDukaan

Rev

Rev 34018 | Rev 34527 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34018 Rev 34211
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);