| | |
| | | if(!$is_admin)
|
| | | {
|
| | | $cid = $app->db->queryOneRecord('SELECT client_id FROM client WHERE username = "'.$app->db->quote($_SESSION['s']['user']['username']).'";');
|
| | | $client_ext = ' AND aps_instances.customer_id = '.$cid['client_id'];
|
| | | //$client_ext = ' AND aps_instances.customer_id = '.$cid['client_id'];
|
| | | $client_ext = ' AND '.$app->tform->getAuthSQL('r', 'aps_instances');
|
| | | }
|
| | | $app->listform_actions->SQLExtWhere = 'aps_instances.package_id = aps_packages.id'.$client_ext;
|
| | | $app->listform_actions->SQLOrderBy = 'ORDER BY package_name';
|