id_customer == Context::getContext()->customer->id) { header('Content-Type: application/pdf'); header('Content-disposition: attachment;filename='.Tools::getValue('nameFile')); readfile(_PS_ROOT_DIR_.'/../files/order_'.Tools::getValue(id_order).'/'.Tools::getValue('nameFile')); exit; } else { http_response_code(403); exit('403 Forbidden'); } } } }