Network operators now only see their own and their providers Preorders
This commit is contained in:
@@ -549,6 +549,18 @@ class PreorderModel {
|
||||
$where .= " AND tt_preorder.adb_wohneinheit_id IS NOT NULL AND tt_preorder.adb_wohneinheit_id > 0";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("operator_id", $filter)) {
|
||||
$operator_id = $filter['operator_id'];
|
||||
if(is_numeric($operator_id)) {
|
||||
$where .= " AND partner_id IN (
|
||||
SELECT PreordercampaignOperatorIsp.isp_id as isp_id
|
||||
FROM PreordercampaignOperatorIsp
|
||||
LEFT JOIN PreordercampaignOperator ON (PreordercampaignOperatorIsp.campaignoperator_id = PreordercampaignOperator.id)
|
||||
WHERE operator_id = $operator_id
|
||||
)";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("product_id", $filter)) {
|
||||
$product_id = $filter['product_id'];
|
||||
|
||||
Reference in New Issue
Block a user