From 66a49f2810b66829f5371fb1092996ad26619634 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 8 Oct 2024 11:22:42 +0530 Subject: [PATCH] Fixed: Admin is able to create new account using the banned guest account email --- controllers/admin/AdminCustomersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index 49e8ade9a..79cdae793 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -1094,7 +1094,7 @@ class AdminCustomersControllerCore extends AdminController $this->errors[] = Tools::displayError('An account already exists for this email address:').' '.$customer_email; $this->display = 'edit'; return $customer; - } elseif (Customer::customerExists($customer_email, false, true)) { + } elseif (Customer::customerExists($customer_email, false, false)) { $this->errors[] = Tools::displayError('The email is already associated with a banned account. Please use a different one.'); $this->display = 'edit'; } elseif (trim(Tools::getValue('passwd')) == '') {