Supply Orders: updates rights on receipt update
This commit is contained in:
@@ -1078,7 +1078,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
|||||||
// Checks access
|
// Checks access
|
||||||
if (Tools::isSubmit('submitAddsupply_order') && !($this->tabAccess['add'] === '1'))
|
if (Tools::isSubmit('submitAddsupply_order') && !($this->tabAccess['add'] === '1'))
|
||||||
$this->_errors[] = Tools::displayError($this->l('You do not have the required permission to add a supply order.'));
|
$this->_errors[] = Tools::displayError($this->l('You do not have the required permission to add a supply order.'));
|
||||||
if (Tools::isSubmit('submitUpdateReceipt') && !($this->tabAccess['edit'] === '1'))
|
if (Tools::isSubmit('submitBulkUpdatesupply_order_detail') && !($this->tabAccess['edit'] === '1'))
|
||||||
$this->_errors[] = Tools::displayError($this->l('You do not have the required permission to edit an order.'));
|
$this->_errors[] = Tools::displayError($this->l('You do not have the required permission to edit an order.'));
|
||||||
// Global checks when add / update a supply order
|
// Global checks when add / update a supply order
|
||||||
if (Tools::isSubmit('submitAddsupply_order'))
|
if (Tools::isSubmit('submitAddsupply_order'))
|
||||||
|
|||||||
Reference in New Issue
Block a user