Skip to content

Commit 79a3a1a

Browse files
committed
Fix logical issue
1 parent 501e370 commit 79a3a1a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/code/Magento/Customer/Controller/Plugin/Account.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,10 @@ public function __construct(
6060
*/
6161
public function aroundExecute(AccountInterface $controllerAction, Closure $proceed)
6262
{
63-
if ($this->isActionAllowed()) {
63+
/** @FIXME Move Authentication and redirect out of Session model */
64+
if ($this->isActionAllowed() || $this->session->authenticate()) {
6465
return $proceed();
6566
}
66-
67-
/** @FIXME Move Authentication and redirect out of Session model */
68-
$this->session->authenticate();
6967
}
7068

7169
/**

0 commit comments

Comments
 (0)