Skip to content

Commit 46d7825

Browse files
committed
MC-42008: Problem with customer API route
1 parent 2a56257 commit 46d7825

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

app/code/Magento/Persistent/Model/Customer/Authorization.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ class Authorization implements AuthorizationInterface
3535
public function __construct(
3636
CustomerSession $customerSession,
3737
PersistentSession $persistentSession
38-
)
39-
{
38+
) {
4039
$this->customerSession = $customerSession;
4140
$this->persistentSession = $persistentSession;
4241
}
@@ -49,8 +48,7 @@ public function __construct(
4948
public function isAllowed(
5049
$resource,
5150
$privilege = null
52-
)
53-
{
51+
) {
5452
if (
5553
$this->persistentSession->isPersistent() &&
5654
$this->customerSession->getCustomerId() &&

app/code/Magento/Persistent/Test/Unit/Model/Customer/AuthorizationTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ public function testIsAuthorized(
8080
?int $customerId,
8181
?bool $isCustomerEmulated,
8282
bool $shouldBeAllowed
83-
): void
84-
{
83+
): void {
8584
$this->persistentSessionMock->expects($this->any())->method('isPersistent')->willReturn($isPersistent);
8685
$this->customerSessionMock->expects($this->any())->method('getCustomerId')->willReturn($customerId);
8786
$this->customerSessionMock->expects($this->any())->method('getIsCustomerEmulated')->willReturn($isCustomerEmulated);

0 commit comments

Comments
 (0)