Skip to content

Commit 347d9ad

Browse files
magento/magento2-login-as-customer#150: Opt-in/out - degradation fix.
1 parent 369b3a0 commit 347d9ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public function beforeExtractData(
5757
$scope = null,
5858
$scopeOnly = true
5959
): void {
60-
if (!$this->authorization->isAllowed('Magento_LoginAsCustomer::opt_in_preference')
61-
&& $this->isSetAssistanceAllowedParam($request)
60+
if ($this->isSetAssistanceAllowedParam($request)
61+
&& !$this->authorization->isAllowed('Magento_LoginAsCustomer::opt_in_preference')
6262
) {
6363
$customerId = $request->getParam('customer_id');
6464
$assistanceAllowedParam =

0 commit comments

Comments
 (0)