File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
app/code/Magento/LoginAsCustomerAssistance Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function beforeExtractData(
58
58
$ scopeOnly = true
59
59
): void {
60
60
if ($ this ->isSetAssistanceAllowedParam ($ request )
61
- && !$ this ->authorization ->isAllowed ('Magento_LoginAsCustomer::opt_in_preference ' )
61
+ && !$ this ->authorization ->isAllowed ('Magento_LoginAsCustomer::allow_shopping_assistance ' )
62
62
) {
63
63
$ customerId = $ request ->getParam ('customer_id ' );
64
64
$ assistanceAllowedParam =
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public function afterGetMeta(
89
89
): array {
90
90
if (!$ this ->config ->isEnabled ()) {
91
91
$ assistanceAllowedConfig = ['visible ' => false ];
92
- } elseif (!$ this ->authorization ->isAllowed ('Magento_LoginAsCustomer::opt_in_preference ' )) {
92
+ } elseif (!$ this ->authorization ->isAllowed ('Magento_LoginAsCustomer::allow_shopping_assistance ' )) {
93
93
$ assistanceAllowedConfig = [
94
94
'disabled ' => true ,
95
95
'notice ' => __ ('You have no permission to change Opt-In preference. ' ),
Original file line number Diff line number Diff line change 11
11
<resource id =" Magento_Backend::admin" >
12
12
<resource id =" Magento_Customer::customer" >
13
13
<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" />
15
15
</resource >
16
16
</resource >
17
17
</resource >
You can’t perform that action at this time.
0 commit comments