// small fix on adminpdf

This commit is contained in:
rGaillard
2012-08-08 09:55:29 +00:00
parent 8deb5583ad
commit 76f1ea5233
2 changed files with 10 additions and 2 deletions
+10
View File
@@ -35,6 +35,16 @@ class AdminPdfControllerCore extends AdminController
exit;
}
public function initProcess()
{
parent::initProcess();
$access = Profile::getProfileAccess($this->context->employee->id_profile, (int)Tab::getIdFromClassName('AdminOrders'));
if ($access['view'] === '1' && ($action = Tools::getValue('submitAction')))
$this->action = $action;
else
$this->errors[] = Tools::displayError('You do not have permission to view here.');
}
public function processGenerateInvoicePdf()
{
if (Tools::isSubmit('id_order'))