mirror of https://github.com/itflow-org/itflow
Fix broken Clients when restricting user client access
This commit is contained in:
parent
40ccbb5627
commit
965c16c19d
|
|
@ -82,7 +82,7 @@ try {
|
||||||
|
|
||||||
// Role / Client Access Permission Check
|
// Role / Client Access Permission Check
|
||||||
if ($session_user_role < 3 && !empty($client_access_string)) {
|
if ($session_user_role < 3 && !empty($client_access_string)) {
|
||||||
$access_permission_query = "AND client_id IN ($client_access_string)";
|
$access_permission_query = "AND clients.client_id IN ($client_access_string)";
|
||||||
} else {
|
} else {
|
||||||
$access_permission_query = "";
|
$access_permission_query = "";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,8 @@ if (isset($_GET['tags']) && is_array($_GET['tags']) && !empty($_GET['tags'])) {
|
||||||
// Convert the sanitized tags into a comma-separated string
|
// Convert the sanitized tags into a comma-separated string
|
||||||
$sanitizedTagsString = implode(",", $sanitizedTags);
|
$sanitizedTagsString = implode(",", $sanitizedTags);
|
||||||
$tag_query = "AND tags.tag_id IN ($sanitizedTagsString)";
|
$tag_query = "AND tags.tag_id IN ($sanitizedTagsString)";
|
||||||
|
} else{
|
||||||
|
$tag_query = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Industry Filter
|
// Industry Filter
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue