mirror of https://gitee.com/karson/fastadmin.git
修复超级管理员隐藏的组别不显示的问题
parent
f7e47d90f1
commit
17eb182063
|
|
@ -339,7 +339,7 @@ class Auth extends \fast\Auth
|
|||
}
|
||||
}
|
||||
// 取出所有分组
|
||||
$groupList = \app\admin\model\AuthGroup::where(['status' => 'normal'])->select();
|
||||
$groupList = \app\admin\model\AuthGroup::where($this->isSuperAdmin() ? '1=1' : ['status' => 'normal'])->select();
|
||||
$objList = [];
|
||||
foreach ($groups as $k => $v) {
|
||||
if ($v['rules'] === '*') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue