fixed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user