实现:藏状态的角色及其子角色在管理页面下正常显示

pull/163/head
zsgwakk 2019-12-29 19:50:28 +08:00
parent 5ff7c7bff8
commit 58f6077622
1 changed files with 2 additions and 1 deletions

View File

@ -282,7 +282,8 @@ class Auth extends \fast\Auth
}
}
// 取出所有分组
$groupList = \app\admin\model\AuthGroup::where(['status' => 'normal'])->select();
// $groupList = \app\admin\model\AuthGroup::where(['status' => 'normal'])->select();
$groupList = \app\admin\model\AuthGroup::all();
$objList = [];
foreach ($groups as $k => $v) {
if ($v['rules'] === '*') {