fix personalized suggestions
This commit is contained in:
parent
95e52cc79d
commit
7f95cef13b
@ -34,8 +34,8 @@ public class ShopIndexController {
|
||||
|
||||
boolean isLoggedIn = false;
|
||||
boolean hasOrders = false;
|
||||
if (session != null && session.getAttribute("id") != null) {
|
||||
long userId = (long) session.getAttribute("id");
|
||||
if (session != null && session.getAttribute("userId") != null) {
|
||||
long userId = (long) session.getAttribute("userId");
|
||||
isLoggedIn = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user