Updated Client Access Permissions to use the defined in check_login.php

This commit is contained in:
johnnyq
2025-02-22 14:25:24 -05:00
parent 8d05633d7d
commit 0e3959ce00
6 changed files with 9 additions and 26 deletions

View File

@@ -18,10 +18,12 @@ if (isset($_GET['client_id'])) {
$sql = mysqli_query(
$mysqli,
"SELECT SQL_CALC_FOUND_ROWS * FROM vendors
LEFT JOIN clients ON client_id = vendor_client_id
WHERE vendor_$archive_query
AND vendor_template = 0
AND (vendor_name LIKE '%$q%' OR vendor_description LIKE '%$q%' OR vendor_account_number LIKE '%$q%' OR vendor_website LIKE '%$q%' OR vendor_contact_name LIKE '%$q%' OR vendor_email LIKE '%$q%' OR vendor_phone LIKE '%$phone_query%')
$client_query
$access_permission_query
ORDER BY $sort $order LIMIT $record_from, $record_to"
);