Skip to content

Commit ce7daaf

Browse files
committed
ticket edit modal: Restrict Access to client restricted agents
1 parent fb9f5d9 commit ce7daaf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

agent/modals/ticket/ticket_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
$ticket_id = intval($_GET['id']);
66

7-
$sql = mysqli_query($mysqli, "SELECT * FROM tickets LEFT JOIN clients ON client_id = ticket_client_id WHERE ticket_id = $ticket_id LIMIT 1");
7+
$sql = mysqli_query($mysqli, "SELECT * FROM tickets LEFT JOIN clients ON client_id = ticket_client_id WHERE ticket_id = $ticket_id $access_permission_query LIMIT 1");
88

99
$row = mysqli_fetch_assoc($sql);
1010
$client_id = intval($row['client_id']);

0 commit comments

Comments
 (0)