Fixed: admin is able to see the hotel address in the admin address controller by changing the id in in url

This commit is contained in:
vishalsingh.qlo325
2024-09-26 18:59:40 +05:30
parent 589dd8305f
commit dd7f597539

View File

@@ -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(