// AdminSupplyOrders: fixed permissions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10926 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -340,13 +340,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
|||||||
$this->tpl_list_vars['current_warehouse'] = $this->getCurrentWarehouse();
|
$this->tpl_list_vars['current_warehouse'] = $this->getCurrentWarehouse();
|
||||||
$this->tpl_list_vars['filter_status'] = $this->getFilterStatus();
|
$this->tpl_list_vars['filter_status'] = $this->getFilterStatus();
|
||||||
|
|
||||||
|
// adds export csv buttons
|
||||||
// access
|
|
||||||
if (!($this->tabAccess['add'] === '1'))
|
|
||||||
unset($this->toolbar_btn['new']);
|
|
||||||
|
|
||||||
unset($this->toolbar_btn['new']);
|
|
||||||
|
|
||||||
$this->toolbar_btn['export-csv-orders'] = array(
|
$this->toolbar_btn['export-csv-orders'] = array(
|
||||||
'short' => 'Export Orders',
|
'short' => 'Export Orders',
|
||||||
'href' => $this->context->link->getAdminLink('AdminSupplyOrders').'&csv_orders',
|
'href' => $this->context->link->getAdminLink('AdminSupplyOrders').'&csv_orders',
|
||||||
@@ -359,10 +353,15 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
|||||||
'desc' => $this->l('Export Orders Details (CSV)'),
|
'desc' => $this->l('Export Orders Details (CSV)'),
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->toolbar_btn['new'] = array(
|
// access
|
||||||
'href' => self::$currentIndex.'&add'.$this->table.'&token='.$this->token,
|
unset($this->toolbar_btn['new']);
|
||||||
'desc' => $this->l('Add new')
|
if ($this->tabAccess['add'] === '1')
|
||||||
);
|
{
|
||||||
|
$this->toolbar_btn['new'] = array(
|
||||||
|
'href' => self::$currentIndex.'&add'.$this->table.'&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// overrides query
|
// overrides query
|
||||||
$this->_select = '
|
$this->_select = '
|
||||||
|
|||||||
Reference in New Issue
Block a user