From e7c9567f8bf6cb425aa1097f7bbf8d4e037574b9 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 12 Mar 2024 12:39:42 +0530 Subject: [PATCH] Removed: Hotel wise access for the employees on the customers addresses --- controllers/admin/AdminAddressesController.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/controllers/admin/AdminAddressesController.php b/controllers/admin/AdminAddressesController.php index beac77b2d..0b511f1d0 100644 --- a/controllers/admin/AdminAddressesController.php +++ b/controllers/admin/AdminAddressesController.php @@ -74,16 +74,6 @@ class AdminAddressesControllerCore extends AdminController 'city' => array('title' => $this->l('City')), 'country' => array('title' => $this->l('Country'), 'type' => 'select', 'list' => $this->countries_array, 'filter_key' => 'cl!id_country')); - - // START send access query information to the admin controller - $this->access_select = ' SELECT a.`id_address` FROM '._DB_PREFIX_.'address a'; - $this->access_join = ' INNER JOIN '._DB_PREFIX_.'customer cust ON (cust.id_customer = a.id_customer)'; - $this->access_join .= ' INNER JOIN '._DB_PREFIX_.'orders ord ON (cust.id_customer = ord.id_customer)'; - $this->access_join .= ' INNER JOIN '._DB_PREFIX_.'htl_booking_detail hbd ON (hbd.id_order = ord.id_order)'; - if ($acsHtls = HotelBranchInformation::getProfileAccessedHotels($this->context->employee->id_profile, 1, 1)) { - $this->access_where = ' WHERE hbd.id_hotel IN ('.implode(',', $acsHtls).')'; - } - parent::__construct(); $this->_select = 'cl.`name` as country';