From 3a0e20055e410e286cb56794b6b649686efb51c3 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 12 Mar 2024 12:35:17 +0530 Subject: [PATCH] Removed:: Hotel wise access restriction for the employees on AdminCustomerController --- controllers/admin/AdminCustomersController.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index f05cfc918..2f7b80704 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -152,16 +152,6 @@ public function __construct() $this->shopLinkType = 'shop'; $this->shopShareDatas = Shop::SHARE_CUSTOMER; - - - // START send access query information to the admin controller - $this->access_select = ' SELECT a.`id_customer` FROM '._DB_PREFIX_.'customer a'; - $this->access_join = ' INNER JOIN '._DB_PREFIX_.'orders ord ON (a.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 = '