mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Adjust bad SQL query that allowed contacts to see ticket subjects (but not content) for other contacts
This commit is contained in:
@@ -13,10 +13,10 @@ require_once "inc_portal.php";
|
||||
if (!isset($_GET['status'])) {
|
||||
// If nothing is set, assume we only want to see open tickets
|
||||
$status = 'Open';
|
||||
$ticket_status_snippet = "ticket_status != 5 AND ticket_status != 'Closed'";
|
||||
$ticket_status_snippet = "ticket_closed_at IS NULL";
|
||||
} elseif (isset($_GET['status']) && ($_GET['status']) == 'Closed') {
|
||||
$status = 'Closed';
|
||||
$ticket_status_snippet = "ticket_status = 5 OR ticket_status = 'Closed'";
|
||||
$ticket_status_snippet = "ticket_closed_at IS NOT NULL";
|
||||
} else {
|
||||
$status = '%';
|
||||
$ticket_status_snippet = "ticket_status LIKE '%'";
|
||||
|
||||
Reference in New Issue
Block a user