Skip to content

Commit 5e3bdd6

Browse files
magento/magento2-login-as-customer#150: Opt-in/out - acl text fix.
1 parent ca95769 commit 5e3bdd6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/LoginAsCustomerAssistance/Plugin/CustomerDataValidatePlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function beforeExtractData(
5858
$scopeOnly = true
5959
): void {
6060
if ($this->isSetAssistanceAllowedParam($request)
61-
&& !$this->authorization->isAllowed('Magento_LoginAsCustomer::opt_in_preference')
61+
&& !$this->authorization->isAllowed('Magento_LoginAsCustomer::allow_shopping_assistance')
6262
) {
6363
$customerId = $request->getParam('customer_id');
6464
$assistanceAllowedParam =

app/code/Magento/LoginAsCustomerAssistance/Plugin/DataProviderWithDefaultAddressesPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function afterGetMeta(
8989
): array {
9090
if (!$this->config->isEnabled()) {
9191
$assistanceAllowedConfig = ['visible' => false];
92-
} elseif (!$this->authorization->isAllowed('Magento_LoginAsCustomer::opt_in_preference')) {
92+
} elseif (!$this->authorization->isAllowed('Magento_LoginAsCustomer::allow_shopping_assistance')) {
9393
$assistanceAllowedConfig = [
9494
'disabled' => true,
9595
'notice' => __('You have no permission to change Opt-In preference.'),

app/code/Magento/LoginAsCustomerAssistance/etc/acl.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<resource id="Magento_Backend::admin">
1212
<resource id="Magento_Customer::customer">
1313
<resource id="Magento_LoginAsCustomer::login">
14-
<resource id="Magento_LoginAsCustomer::opt_in_preference" title="Change Customer Opt-In Preference" sortOrder="20" />
14+
<resource id="Magento_LoginAsCustomer::allow_shopping_assistance" title="Allow remote shopping assistance" sortOrder="20" />
1515
</resource>
1616
</resource>
1717
</resource>

0 commit comments

Comments
 (0)