Downloading Attachments While in Maintenance Mode
Posted: Mon Dec 07, 2015 7:38 pm
The following bug report came to Mods for HESK:
This appears to be an issue since sessions are stored in the $_SESSION superglobal, and not $SESSION. Therefore, it appears that HESK is always checking if it is in maintenance mode, even if the user downloading the attachment is not a customer.
I took a quick look at download_attachment.php, and there is this code block for checking if maintenance mode is enabled:When I switch on maintenance mode the attachments in the tickets are resulting in dead links or sql errors for the admins.
Code: Select all
// Are we in maintenance mode? (check customers only)
if (empty($SESSION['id'])) {
hesk_check_maintenance();
}