Skip to content

Commit 931247c

Browse files
author
Oleksandr Osadchyi
committed
MAGETWO-59135: [Github] Customer session is shared for different customers on two websites #4842 #6468
1 parent e7b463d commit 931247c

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Customer/view/frontend/web/js/invalidation-rules

1 file changed

+3
-1
lines changed

app/code/Magento/Customer/view/frontend/web/js/invalidation-rules/website-rule.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ define([
2222
process: function (customerData) {
2323
var customer = customerData.get('customer');
2424

25-
if (this.scopeConfig && customer() && ~~customer().websiteId !== ~~this.scopeConfig.websiteId) {
25+
if (this.scopeConfig && customer() &&
26+
(~~customer().websiteId !== ~~this.scopeConfig.websiteId) && ~~customer().websiteId !== 0) {
27+
console.log(~~customer().websiteId, this.scopeConfig.websiteId);
2628
customerData.reload(['customer']);
2729
}
2830
}

0 commit comments

Comments
 (0)