mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 优化代码
This commit is contained in:
parent
3752b42248
commit
2ea8ae27d8
@ -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')));
|
||||
|
Loading…
x
Reference in New Issue
Block a user