mirror of https://github.com/itflow-org/itflow
Adjust bad SQL query that allowed contacts to see ticket subjects (but not content) for other contacts
This commit is contained in:
parent
2f473c6a03
commit
bc8f79cdf9
|
|
@ -13,8 +13,8 @@ if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
|||
}
|
||||
|
||||
// Ticket status from GET
|
||||
if (!isset($_GET['status'])) {
|
||||
// If nothing is set, assume we only want to see open tickets
|
||||
if (!isset($_GET['status']) || ($_GET['status']) == 'Open') {
|
||||
// Default to showing open
|
||||
$status = 'Open';
|
||||
$ticket_status_snippet = "ticket_closed_at IS NULL";
|
||||
} elseif (isset($_GET['status']) && ($_GET['status']) == 'Closed') {
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ require_once "inc_portal.php";
|
|||
|
||||
|
||||
// Ticket status from GET
|
||||
if (!isset($_GET['status'])) {
|
||||
// If nothing is set, assume we only want to see open tickets
|
||||
if (!isset($_GET['status']) || ($_GET['status']) == 'Open') {
|
||||
// Default to showing open
|
||||
$status = 'Open';
|
||||
$ticket_status_snippet = "ticket_closed_at IS NULL";
|
||||
} elseif (isset($_GET['status']) && ($_GET['status']) == 'Closed') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue