modified 优化代码

This commit is contained in:
zhaoxiang 2020-06-09 16:01:39 +08:00
parent 3752b42248
commit 2ea8ae27d8

View File

@ -104,7 +104,7 @@ class Login extends Base {
public function getAccess($uid) {
$isSupper = Tools::isAdministrator($uid);
if ($isSupper) {
$access = AdminMenu::all(['show' => 1]);
$access = AdminMenu::all();
$access = Tools::buildArrFromObj($access);
return array_values(array_filter(array_column($access, 'url')));