mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-24 18:30:18 +08:00
fixed 修复默认权限不显示的BUG
This commit is contained in:
parent
9a865e360e
commit
8cdcf09214
@ -80,6 +80,7 @@ class Auth extends Base {
|
|||||||
$rules = [];
|
$rules = [];
|
||||||
if ($groupId) {
|
if ($groupId) {
|
||||||
$rules = (new AdminAuthRule())->where(['groupId' => $groupId])->select();
|
$rules = (new AdminAuthRule())->where(['groupId' => $groupId])->select();
|
||||||
|
$rules = Tools::buildArrFromObj($rules);
|
||||||
$rules = array_column($rules, 'url');
|
$rules = array_column($rules, 'url');
|
||||||
}
|
}
|
||||||
$newList = $this->buildList($list, $rules);
|
$newList = $this->buildList($list, $rules);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user