Skip to content

Commit 6c10f7a

Browse files
committed
Merge branch 'ACP2E-147' of https://github.com/magento-l3/magento2ce into L3-PR-20211001
2 parents dd5d9d2 + ae4e7a9 commit 6c10f7a

File tree

2 files changed

+0
-13
lines changed
  • app/code/Magento/Customer

2 files changed

+0
-13
lines changed

app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,6 @@ public function execute()
444444
*/
445445
private function updateSubscriptions(CustomerInterface $customer): void
446446
{
447-
if (!$this->_authorization->isAllowed(null)) {
448-
return;
449-
}
450-
451447
$subscriptionStatus = (array)$this->getRequest()->getParam('subscription_status');
452448
$subscriptionStore = (array)$this->getRequest()->getParam('subscription_store');
453449
if (empty($subscriptionStatus)) {

app/code/Magento/Customer/Test/Unit/Controller/Adminhtml/Index/SaveTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -495,11 +495,6 @@ public function testExecuteWithExistentCustomer()
495495
->with($customerMock, $customerEmail)
496496
->willReturnSelf();
497497

498-
$this->authorizationMock->expects($this->once())
499-
->method('isAllowed')
500-
->with(null)
501-
->willReturn(true);
502-
503498
$this->subscriptionManager->expects($this->once())
504499
->method($subscriptionStatus ? 'subscribeCustomer' : 'unsubscribeCustomer')
505500
->with($customerId, $subscriptionStore);
@@ -670,10 +665,6 @@ public function testExecuteWithNewCustomer()
670665
->method('createAccount')
671666
->with($customerMock, null, '')
672667
->willReturn($customerMock);
673-
$this->authorizationMock->expects($this->once())
674-
->method('isAllowed')
675-
->with(null)
676-
->willReturn(true);
677668
$this->subscriptionManager->expects($this->once())
678669
->method($subscriptionStatus ? 'subscribeCustomer' : 'unsubscribeCustomer')
679670
->with($customerId, $subscriptionStore);

0 commit comments

Comments
 (0)