mirror of
https://github.com/itflow-org/itflow
synced 2026-08-10 09:37:15 +00:00
clientScopeSql sweep whicn now removed the extra unessesary client joins
This commit is contained in:
@@ -18,14 +18,7 @@ if (isset($_GET['client_id'])) {
|
||||
// Perms & Project client access snippet
|
||||
enforceUserPermission('module_support');
|
||||
|
||||
$project_permission_snippet = '';
|
||||
|
||||
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_permission_snippet = clientScopeSql('project_client_id');
|
||||
|
||||
// Project Completed Status Query
|
||||
if (isset($_GET['status']) && $_GET['status'] == 1) {
|
||||
|
||||
Reference in New Issue
Block a user