Fixed: KPI access is now under employee permission in back-office

Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
shazar rahman
2026-06-12 17:50:59 +05:30
parent a27e55c049
commit 653fdf3f7f
203 changed files with 9719 additions and 1593 deletions

View File

@@ -90,6 +90,14 @@ class AdminCustomerThreadsControllerCore extends AdminController
'align' => 'center',
'class' => 'fixed-width-xs'
),
'id_order' => array(
'title' => $this->l('ID Order'),
'filter_key' => 'a!id_order',
'align' => 'center',
'optional' => true,
'callback' => 'getOrderLink',
'visible_default' => true,
),
'customer' => array(
'title' => $this->l('Customer'),
'filter_key' => 'customer',
@@ -172,13 +180,6 @@ class AdminCustomerThreadsControllerCore extends AdminController
'type' => 'datetime',
'optional' => true,
),
'id_order' => array(
'title' => $this->l('ID Order'),
'filter_key' => 'a!id_order',
'optional' => false,
'visible_default' => false,
'displayed' => false,
),
);
$this->bulk_actions = array(
@@ -346,6 +347,14 @@ class AdminCustomerThreadsControllerCore extends AdminController
return $customer;
}
public function getOrderLink($order, $tr)
{
if ($tr['id_order']) {
return '<a href="'.$this->context->link->getAdminLink('AdminOrders').'&vieworder&id_order='.$tr['id_order'].'">'.'#'.$order.'</a>';
}else{
return '--';
}
}
public function setMedia()
{
@@ -976,6 +985,7 @@ class AdminCustomerThreadsControllerCore extends AdminController
'count_ok' => isset($orders_ok) ? count($orders_ok) : false,
'PS_CUSTOMER_SERVICE_SIGNATURE' => str_replace('\r\n', "\n", Configuration::get('PS_CUSTOMER_SERVICE_SIGNATURE', (int)$thread->id_lang)),
'timeline_items' => $timeline_items,
'can_edit' => $this->tabAccess['edit'],
);
return parent::renderView();