mirror of https://gitee.com/karson/fastadmin.git
update application/admin/controller/auth/Adminlog.php.
删除残留的旧的冗余代码 Signed-off-by: 御宅男(YznCMS官方) <530765310@qq.com>pull/475/head
parent
a5025fd1b1
commit
f01d11d02b
|
|
@ -18,21 +18,13 @@ class Adminlog extends Backend
|
|||
* @var \app\admin\model\AdminLog
|
||||
*/
|
||||
protected $model = null;
|
||||
protected $childrenGroupIds = [];
|
||||
protected $childrenAdminIds = [];
|
||||
|
||||
public function _initialize()
|
||||
{
|
||||
parent::_initialize();
|
||||
$this->model = model('AdminLog');
|
||||
|
||||
$this->childrenAdminIds = $this->auth->getChildrenAdminIds(true);
|
||||
$this->childrenGroupIds = $this->auth->getChildrenGroupIds(true);
|
||||
|
||||
$groupName = AuthGroup::where('id', 'in', $this->childrenGroupIds)
|
||||
->column('id,name');
|
||||
|
||||
$this->view->assign('groupdata', $groupName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue