!470 修复sidebar左侧菜单因大小写问题导致的菜单列表不能正确显示问题

Merge pull request !470 from AriFe.Liu/develop
pull/469/MERGE
Karson 2024-07-25 02:50:15 +00:00 committed by Gitee
commit e8d65eb124
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ class Auth extends \fast\Auth
->column('name,pid');
$pidArr = array_unique(array_filter(array_column($ruleList, 'pid')));
foreach ($ruleList as $k => &$v) {
if (!in_array($v['name'], $userRule)) {
if (!in_array(strtolower($v['name']), $userRule)) {
unset($ruleList[$k]);
continue;
}