Subversion Repositories SmartDukaan

Rev

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

Rev 25182 Rev 25183
Line 195... Line 195...
195
		LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
195
		LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
196
		boolean isAdmin = roleManager.isAdmin(loginDetails.getRoleIds());
196
		boolean isAdmin = roleManager.isAdmin(loginDetails.getRoleIds());
197
		model.addAttribute("isAdmin", isAdmin);
197
		model.addAttribute("isAdmin", isAdmin);
198
 
198
 
199
		FofoStore fofoStore = null;
199
		FofoStore fofoStore = null;
200
		if (!isAdmin) {
200
		if (isAdmin) {
201
			return "dashboard1";
201
			return "dashboard1";
202
		} else {
202
		} else {
203
			try {
203
			try {
204
				fofoStore = fofoStoreRepository.selectByRetailerId(loginDetails.getFofoId());
204
				fofoStore = fofoStoreRepository.selectByRetailerId(loginDetails.getFofoId());
205
				model.addAttribute("fofoStore", fofoStore);
205
				model.addAttribute("fofoStore", fofoStore);