File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
app/code/Magento/Persistent/Model/Customer Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ class Authorization implements AuthorizationInterface
35
35
public function __construct (
36
36
CustomerSession $ customerSession ,
37
37
PersistentSession $ persistentSession
38
- ) {
38
+ )
39
+ {
39
40
$ this ->customerSession = $ customerSession ;
40
41
$ this ->persistentSession = $ persistentSession ;
41
42
}
@@ -48,8 +49,13 @@ public function __construct(
48
49
public function isAllowed (
49
50
$ resource ,
50
51
$ privilege = null
51
- ) {
52
- if ($ this ->persistentSession ->isPersistent () && !$ this ->customerSession ->isLoggedIn ()) {
52
+ )
53
+ {
54
+ if (
55
+ $ this ->persistentSession ->isPersistent () &&
56
+ $ this ->customerSession ->getCustomerId () &&
57
+ $ this ->customerSession ->getIsCustomerEmulated ()
58
+ ) {
53
59
return false ;
54
60
}
55
61
You can’t perform that action at this time.
0 commit comments