Skip to content

Commit 6b06962

Browse files
AnujNehraAnujNehra
authored andcommitted
ACP2E-1776: Creating customer(-s) via Async REST API ignores group_id
1 parent bc4ccfb commit 6b06962

File tree

5 files changed

+8
-74
lines changed

5 files changed

+8
-74
lines changed

app/code/Magento/Customer/Plugin/ValidateSyncCustomer.php

Lines changed: 0 additions & 66 deletions
This file was deleted.

app/code/Magento/Customer/etc/di.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,4 @@
585585
</argument>
586586
</arguments>
587587
</type>
588-
<type name="Magento\Customer\Model\AccountManagementApi">
589-
<plugin name="validateSyncAnonymousRequestForCustomer"
590-
type="Magento\Customer\Plugin\ValidateSyncCustomer"
591-
/>
592-
</type>
593588
</config>

app/code/Magento/Webapi/etc/di.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,9 @@
6666
<argument name="fileName" xsi:type="string">webapi.xml</argument>
6767
</arguments>
6868
</type>
69+
<type name="Magento\Customer\Model\AccountManagementApi">
70+
<plugin name="anonymousSyncCustomerRequest"
71+
type="Magento\Webapi\Plugin\SyncRequestCustomerGroupAuthorization"
72+
/>
73+
</type>
6974
</config>

app/code/Magento/WebapiAsync/Plugin/AsynchronousOperations/ValidateAsyncCustomer.php renamed to app/code/Magento/WebapiAsync/Plugin/AsynchronousOperations/AsyncRequestCustomerGroupAuthorization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* Plugin to validate anonymous request for asynchronous operations containing group id.
1818
*/
19-
class ValidateAsyncCustomer
19+
class AsyncRequestCustomerGroupAuthorization
2020
{
2121
/**
2222
* Authorization level of a basic admin session

app/code/Magento/WebapiAsync/etc/di.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
/>
7676
</type>
7777
<type name="Magento\AsynchronousOperations\Model\MassSchedule">
78-
<plugin name="validateAsyncAnonymousRequestForCustomer"
79-
type="Magento\WebapiAsync\Plugin\AsynchronousOperations\ValidateAsyncCustomer"
78+
<plugin name="anonymousAsyncCustomerRequest"
79+
type="Magento\WebapiAsync\Plugin\AsynchronousOperations\AsyncRequestCustomerGroupAuthorization"
8080
/>
8181
</type>
8282
</config>

0 commit comments

Comments
 (0)