This commit is contained in:
2025-03-27 16:37:39 +08:00
parent 96339939ec
commit 04fdb4b1ad
3 changed files with 60 additions and 41 deletions

View File

@@ -28,7 +28,7 @@ class Admin extends Backend
protected $searchFields = 'id,username,nickname';
protected $childrenGroupIds = [];
protected $childrenAdminIds = [];
protected $noNeedRight = ['index'];
protected $noNeedRight = ['index','getRelWxids','getAdminList'];
public function _initialize()
{
@@ -95,7 +95,8 @@ class Admin extends Backend
$adminGroupName[$this->auth->id][$n['id']] = $n['name'];
}
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
$this->model->where('role','firm');
$this->model->where('firm_id',session_admin_firm_id());
$list = $this->model
->where($where)
->where('id', 'in', $this->childrenAdminIds)