Subversion Repositories SmartDukaan

Rev

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

Rev 31238 Rev 31467
Line 383... Line 383...
383
 
383
 
384
		LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
384
		LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
385
		String email = loginDetails.getEmailId();
385
		String email = loginDetails.getEmailId();
386
 
386
 
387
		AuthUser authUser = authRepository.selectByEmailOrMobile(email);
387
		AuthUser authUser = authRepository.selectByEmailOrMobile(email);
388
		Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMapping();
-
 
389
 
-
 
390
		Set<Integer> fofoIds = storeGuyMap.get(authUser.getEmailId());
388
		Set<Integer> fofoIds = csService.getAuthFofoIds(email, false);
391
 
-
 
392
		if (emails.contains(authUser.getEmailId())) {
-
 
393
			fofoIds = storeGuyMap.get("tarun.verma@smartdukaan.com");
-
 
394
			LOGGER.info("fofoIds" + fofoIds);
-
 
395
		}
-
 
396
 
389
 
397
		LOGGER.info("fofoIds" + fofoIds);
390
		LOGGER.info("fofoIds" + fofoIds);
398
		if (fofoIds == null) {
391
		if (fofoIds == null) {
399
			throw new ProfitMandiBusinessException("you are not authorized", "", "you are not authorized" + " " + "");
392
			throw new ProfitMandiBusinessException("you are not authorized", "", "you are not authorized" + " " + "");
400
		}
393
		}