Supply Orders: updates rights on receipt update
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10163 b9a71923-0436-4b27-9f14-aed3839534dd
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