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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user