mirror of
https://github.com/itflow-org/itflow
synced 2026-07-27 02:37:15 +00:00
Fix Client Permission overides to include deny allow list in projects prohect and edit ticket
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user