customer export add role

This commit is contained in:
qianhy
2023-06-02 09:27:27 +08:00
committed by xiaoyu
parent aece894cf5
commit ed4ef7ecfc
+2 -2
View File
@@ -115,7 +115,7 @@ class Customer extends HD_Controller
$this->data['params'] = $params;
$this->data['status_arr'] = $status_arr;
$this->data['qdjl_lists'] = $qdjl_lists;
$this->data['export_button'] = $this->uid == 1 ? 1 : 0;
$this->data['export_button'] = SUPER_ADMIN == $this->role || in_array($this->uid, array(1, 62)) ? 1 : 0;
$this->data['_title'] = '客户列表';
return $this->show_view('receiver/customer/lists', true);
}
@@ -922,7 +922,7 @@ class Customer extends HD_Controller
public function export()
{
if ($this->uid != 1) {
if (!(SUPER_ADMIN == $this->role || in_array($this->uid, array(1, 62)))) {
return $this->show_json(SYS_CODE_FAIL, '无权限导出');
}