|
@@ -208,11 +208,11 @@ class Menu
|
|
|
return $menu;
|
|
|
}
|
|
|
|
|
|
- public function getChild($menu, $child, $v, $auth)
|
|
|
+ public function getChild($menu, $child, $v, $auth, $state = false)
|
|
|
{
|
|
|
if (isset($child[$v['id']])) {
|
|
|
foreach ($child[$v['id']] as $i => $j) {
|
|
|
- if ($auth && $i && strpos($auth . '.', $i) === false) {
|
|
|
+ if ($state == false && $auth && $i && strpos($auth . '.', $i) === false) {
|
|
|
//unset($child[$parent][$i]);
|
|
|
//continue;
|
|
|
} else {
|
|
@@ -221,7 +221,7 @@ class Menu
|
|
|
}
|
|
|
$menu['child'][$i] = $j;
|
|
|
|
|
|
- $menu['child'][$i] = $this->getChild($menu['child'][$i], $child, $j, $auth);
|
|
|
+ $menu['child'][$i] = $this->getChild($menu['child'][$i], $child, $j, $auth, true);
|
|
|
|
|
|
if ($j['fast'] == 1) {
|
|
|
$this->fast[$i] = $j;
|