Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #43 from mageplaza/2.4-develop
Browse files Browse the repository at this point in the history
2.4 develop
  • Loading branch information
haitv282 authored Jun 22, 2022
2 parents f1da4fb + 5a3de97 commit 98b3ad7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Observer/CustomerLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public function execute(Observer $observer)
$customerId = $customer->getId();
$statusCustomer = $this->helperData->getIsApproved($customerId);

if ($statusCustomer !== AttributeOptions::APPROVED) {
if (($statusCustomer !== AttributeOptions::APPROVED && $statusCustomer !== AttributeOptions::NEW_STATUS)
|| ($statusCustomer === AttributeOptions::NEW_STATUS && !$this->helperData->getAutoApproveConfig())) {
$this->_customerSession->logout()
->setBeforeAuthUrl($this->_redirect->getRefererUrl())
->setLastCustomerId($customerId);
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "mageplaza/module-customer-approval",
"description": "Magento 2 Customer Approval Extension",
"require": {
"mageplaza/module-core": "^1.4.5"
"mageplaza/module-core": "^1.4.12"
},
"type": "magento2-module",
"version": "4.0.4",
"version": "4.0.5",
"license": "proprietary",
"authors": [
{
Expand Down

0 comments on commit 98b3ad7

Please sign in to comment.