Updated : added hidden inputs in HelperTree class | Admin can only see his own hotel in HelperTree

This commit is contained in:
Shreesh Arora
2024-10-01 12:56:20 +05:30
parent f8caa224b7
commit 0bedfdb094
11 changed files with 68 additions and 27 deletions

View File

@@ -601,15 +601,15 @@ class AdminCartRulesControllerCore extends AdminController
$products['selected'] = HotelBranchInformation::filterDataByHotelAccess(
$products['selected'],
$this->context->employee->id_profile,
0,
1,
false,
'id',
1
);
$products['unselected'] = HotelBranchInformation::filterDataByHotelAccess(
$products['unselected'],
$this->context->employee->id_profile,
0,
1,
false,
'id',
1
);
Context::getContext()->smarty->assign('product_rule_itemlist', $products);