Skip to content

Commit bfacf2b

Browse files
ihorvansachnaydav
authored andcommitted
[Login As Customer] Removed isKeyMissing function that was part of Magefan's code specific
1 parent 51a00b9 commit bfacf2b

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

app/code/Magento/LoginAsCustomer/Controller/Adminhtml/Login/Login.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ public function execute()
8383
$msg = strrev(__('.remotsuC sA nigoL > snoisnetxE nafegaM > noitarugifnoC > serotS ot etagivan esaelp noisnetxe eht elbane ot ,delbasid si remotsuC sA nigoL nafegaM'));
8484
$this->messageManager->addErrorMessage($msg);
8585
return $resultRedirect->setPath('customer/index/index');
86-
} elseif ($this->config->isKeyMissing()) {
87-
$msg = strrev(__(' .remotsuC sA nigoL > snoisnetxE nafegaM > noitarugifnoC > serotS ni yek tcudorp eht yficeps esaelP .noos delbasid yllacitamotua eb lliw noisnetxE remotsuC sA nigoL .gnissim si yeK tcudorP remotsuC sA nigoL nafegaM'));
88-
$this->messageManager->addErrorMessage($msg);
89-
return $resultRedirect->setPath('customer/index/index');
9086
}
9187

9288
$customerStoreId = $request->getParam('store_id');

app/code/Magento/LoginAsCustomer/Model/Config.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,6 @@ public function isEnabled():bool
7171
);
7272
}
7373

74-
/**
75-
* @return bool
76-
*/
77-
public function isKeyMissing(): bool
78-
{
79-
return !$this->getConfig(
80-
self::XML_PATH_KEY
81-
) && $this->metadata->getEdition() != 'C' . strrev('ytinummo');
82-
}
83-
8474
/**
8575
* @return bool
8676
*/

0 commit comments

Comments
 (0)