File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed
app/code/Magento/Customer
Controller/Adminhtml/Index
Test/Unit/Controller/Adminhtml/Index Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -444,10 +444,6 @@ public function execute()
444
444
*/
445
445
private function updateSubscriptions (CustomerInterface $ customer ): void
446
446
{
447
- if (!$ this ->_authorization ->isAllowed (null )) {
448
- return ;
449
- }
450
-
451
447
$ subscriptionStatus = (array )$ this ->getRequest ()->getParam ('subscription_status ' );
452
448
$ subscriptionStore = (array )$ this ->getRequest ()->getParam ('subscription_store ' );
453
449
if (empty ($ subscriptionStatus )) {
Original file line number Diff line number Diff line change @@ -495,11 +495,6 @@ public function testExecuteWithExistentCustomer()
495
495
->with ($ customerMock , $ customerEmail )
496
496
->willReturnSelf ();
497
497
498
- $ this ->authorizationMock ->expects ($ this ->once ())
499
- ->method ('isAllowed ' )
500
- ->with (null )
501
- ->willReturn (true );
502
-
503
498
$ this ->subscriptionManager ->expects ($ this ->once ())
504
499
->method ($ subscriptionStatus ? 'subscribeCustomer ' : 'unsubscribeCustomer ' )
505
500
->with ($ customerId , $ subscriptionStore );
@@ -670,10 +665,6 @@ public function testExecuteWithNewCustomer()
670
665
->method ('createAccount ' )
671
666
->with ($ customerMock , null , '' )
672
667
->willReturn ($ customerMock );
673
- $ this ->authorizationMock ->expects ($ this ->once ())
674
- ->method ('isAllowed ' )
675
- ->with (null )
676
- ->willReturn (true );
677
668
$ this ->subscriptionManager ->expects ($ this ->once ())
678
669
->method ($ subscriptionStatus ? 'subscribeCustomer ' : 'unsubscribeCustomer ' )
679
670
->with ($ customerId , $ subscriptionStore );
You can’t perform that action at this time.
0 commit comments