// small fix on adminpdf
This commit is contained in:
@@ -1818,8 +1818,6 @@ class AdminControllerCore extends Controller
|
|||||||
else
|
else
|
||||||
$this->errors[] = Tools::displayError('You do not have permission to edit here.');
|
$this->errors[] = Tools::displayError('You do not have permission to edit here.');
|
||||||
}
|
}
|
||||||
elseif ($submitted_action = Tools::getValue('submitAction'.$this->table))
|
|
||||||
$this->action = $submitted_action;
|
|
||||||
elseif (Tools::getValue('submitAdd'.$this->table)
|
elseif (Tools::getValue('submitAdd'.$this->table)
|
||||||
|| Tools::getValue('submitAdd'.$this->table.'AndStay')
|
|| Tools::getValue('submitAdd'.$this->table.'AndStay')
|
||||||
|| Tools::getValue('submitAdd'.$this->table.'AndPreview'))
|
|| Tools::getValue('submitAdd'.$this->table.'AndPreview'))
|
||||||
|
|||||||
@@ -35,6 +35,16 @@ class AdminPdfControllerCore extends AdminController
|
|||||||
exit;
|
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()
|
public function processGenerateInvoicePdf()
|
||||||
{
|
{
|
||||||
if (Tools::isSubmit('id_order'))
|
if (Tools::isSubmit('id_order'))
|
||||||
|
|||||||
Reference in New Issue
Block a user