Fix Client Permission overides to include deny allow list in projects prohect and edit ticket

This commit is contained in:
johnnyq
2026-07-25 13:28:47 -04:00
parent 3756561458
commit 8d46e2a7db
3 changed files with 16 additions and 5 deletions

View File

@@ -17,9 +17,14 @@ if (isset($_GET['client_id'])) {
// Perms & Project client access snippet
enforceUserPermission('module_support');
$project_permission_snippet = '';
if (!empty($client_access_string)) {
$project_permission_snippet = "AND project_client_id IN ($client_access_string) OR project_client_id = 0";
if ($client_access_string) {
$project_permission_snippet .= " AND (project_client_id IN ($client_access_string) OR project_client_id = 0)";
}
if ($client_deny_string) {
$project_permission_snippet .= " AND project_client_id NOT IN ($client_deny_string)";
}
// Project Completed Status Query