From ec627646bf28d08b8df10eccdfc3a1e632e716da Mon Sep 17 00:00:00 2001 From: gonzalo Date: Tue, 4 Jun 2019 15:52:16 -0300 Subject: [PATCH] closes #696 for magento 2.3 --- Model/Plugin/Subscriber.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Model/Plugin/Subscriber.php b/Model/Plugin/Subscriber.php index f97aa260..7e51ce27 100644 --- a/Model/Plugin/Subscriber.php +++ b/Model/Plugin/Subscriber.php @@ -107,9 +107,7 @@ public function beforeSubscribeCustomerById( $email = $customer->getEmail(); $mergeVars = $this->_helper->getMergeVarsBySubscriber($subscriber, $email); $api = $this->_helper->getApi($storeId); - $isSubscribeOwnEmail = $this->_customerSession->isLoggedIn() - && $this->_customerSession->getCustomerDataObject()->getEmail() == $subscriber->getSubscriberEmail(); - if ($this->_helper->isDoubleOptInEnabled($storeId) && !$isSubscribeOwnEmail) { + if ($this->_helper->isDoubleOptInEnabled($storeId)) { $status = 'pending'; } else { $status = 'subscribed';