From dd7f597539d486f400a82cbad18de4c8437dd899 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Thu, 26 Sep 2024 18:59:40 +0530 Subject: [PATCH] Fixed: admin is able to see the hotel address in the admin address controller by changing the id in in url --- controllers/admin/AdminAddressesController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/admin/AdminAddressesController.php b/controllers/admin/AdminAddressesController.php index 2f579a095..afc8f587b 100644 --- a/controllers/admin/AdminAddressesController.php +++ b/controllers/admin/AdminAddressesController.php @@ -140,6 +140,9 @@ class AdminAddressesControllerCore extends AdminController 'name' => 'email' ), ); + } else if (isset($this->object->id) && $this->object->id_hotel) { + $this->errors[] = Tools::displayError('The object cannot be loaded (or found)'); + return false; } $this->fields_form = array(