修复超级管理员隐藏的组别不显示的问题

pull/462/MERGE
Karson 2024-03-14 19:44:35 +08:00
parent f7e47d90f1
commit 17eb182063
1 changed files with 1 additions and 1 deletions

View File

@ -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'] === '*') {