When you are closing a ticket via drop menu its easy way to add this.
just add $page='tickets.inc.php'; in tickets.php
case 'close':
if(!$thisuser->isadmin() && !$thisuser->canCloseTickets()){
$errors='Perm. Denied. You are not allowed to close tickets.';
}else{
if($ticket->close()){
$msg='Zgłoszenie zostało ZAMKNIĘTE';
}else{
$errors='Problems closing the ticket. Try again';
}
}
//@Modification - go to main view after closing
$page='tickets.inc.php';
break;