Merge pull request #1229 from vishal-singh-webkul/gli-2042
Fixed: Address created for the hotel should not be accessible to the admin in the AdminAddressController in the back-office.
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